Seems relatively basic, but I can't find a way to change graph dynamics using the plotExpression()
function in scater
. For example, I have the following gene expression plot: https://ibb.co/q9p1Zq5
I am coloring points by cell type, but there are so many points and they are too big - therefore, alpha cells seem to trump the other cells because they are near the top of the shading hierarchy.
Specifically, I want to be able to do the following:
- Decrease point size
- Create and change point borders
- Change transparency of points
- Change legend title
In general, within plotExpression()
and other plotting functions in scater
, how are these sorts of changes made to the default graphs? I noticed that plotExpression()
can take in an aes()
object as an argument - is this the way? If so, how must this be formatted? I tried the following code:
plotExpression(sce, features=rownames(var.out.nospike)[chosen.genes], colour_by = "Characteristics.cell.type.", aesth = aes(size=2) + fontsize
but it results in an unused argument
error referring to aesth
. I have also tried adding a theme
object like this:
plotExpression(sce, features=rownames(var.out.nospike)[chosen.genes]) + theme(axis.text=element_text(size=8)
but I don't think you can specify point size in a theme object. Any help or references to coded examples would be much appreciated!
Thanks Aaron. Didn't realize there were extra arguments in
scater-plot-args
. This is really helpful. In the list of extra arguments, I didn't see any way to add a chart title - is this possible forplotExpression()
?Can't you just use
ggtitle
? See, e.g., Figure 12 here.