Hello All,
Just need a quick help, with regards to the plotPCA function of the "really excellent" scater package, that I am using for single-cell RNAseq analysis of 10X data. I wish to change the size of the points and also remove the gray outlines that currently appear around the points.
I tried using "scale_size_manual" and "scale_shape_manual", but these did not have any effect.
I would really appreciate any help.
Many thanks.
Thanks, James. I am actually not using "size_by", so that is left to default.
I was able to change the colors of the points as below:
using scale_fill_manual. But if I use scale_shape_manual or scale_size_manual, nothing changes.
Thanks in advance, for any responses.
For what it's worth, I usually just pull out the coordinates from the object returned by
plotPCA
and replot those in a separate call, rather than trying to wrestle with ggplot2 and scater at the same time. In my opinion, scater is intended for quick production of decent-looking plots for data exploration, usually for use in relatively informal analysis reports that get shown to colleagues or collaborators. If you want customized publication-quality figures, you'll have to do a bit more work.