plotExprsFreqVsMean | R Documentation |
This function uses plotRowData()
from the scater package to
produce a scatter plot of expression frequency against mean counts by
using per-feature quality control metrics produced by scuttle.
plotExprsFreqVsMean(
sce,
point_size = 2,
point_alpha = 0.8,
anno_size = 6,
text_size = 4,
text_color = "black",
trend_color = "firebrick",
trend_size = 1,
trend_se = TRUE,
box.padding = 0.5,
max.overlaps = Inf,
seed = 12321,
xlab = "log2 Mean expression",
ylab = "Percentage of expressing cells",
title = NULL,
theme_size = 18,
...
)
sce |
A |
point_size |
A numeric scalar indicating the size of the points. Default is 2. |
point_alpha |
A numeric scalar (between 0 and 1) indicating the transparency. Default is 0.8. |
anno_size |
A numeric scalar indicating the size of annotation text. Default is 6. |
text_size |
A numeric scalar indicating the size of the label. This
is passed to |
text_color |
A string indicating the colour of the label. This is
passed to |
trend_color |
A string indicating the colour of the smoothed curve. Default is "firebrick", |
trend_size |
A numeric scalar indicating the size of the smoothed curve. Default is 1. |
trend_se |
Logical scalar indicating whether to display confidence
interval around smooth. Default is |
box.padding |
A scalar indicating the amount of padding around
bounding box, as unit or number. This is passed to |
max.overlaps |
Exclude text labels that overlap too many things.
This is passed to |
seed |
Random seed passed to |
xlab |
The title of the x-axis. Default is "log2 Mean expression". |
ylab |
The title of the y-axis. Default is "Percentage of expressing cells". |
title |
Plot title. Default is |
theme_size |
A numeric scalar indicating the base font size. Default is 18. |
... |
Other arguments passed on to |
The original function of the same name can be found in the legacy scater package and is now deprecated.
A ggplot
object
I-Hsuan Lin
scater::plotRowData()
, scuttle::addPerFeatureQCMetrics()
,
scuttle::perFeatureQCMetrics()
, ggrepel::geom_text_repel()
library(SingleCellExperiment)
# Load demo dataset
data(sce)
plotExprsFreqVsMean(sce, title = "Expression frequency vs. mean expression level")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.