View source: R/ggPerQCWrapper.R
plotRunPerCellQCResults | R Documentation |
A wrapper function which visualizes outputs from the runPerCellQC function stored in the colData slot of the SingleCellExperiment object via various plots.
plotRunPerCellQCResults(
inSCE,
sample = NULL,
groupBy = NULL,
combinePlot = "all",
violin = TRUE,
boxplot = FALSE,
dots = TRUE,
dotSize = 0.5,
summary = "median",
summaryTextSize = 3,
baseSize = 15,
axisSize = NULL,
axisLabelSize = NULL,
transparency = 1,
defaultTheme = TRUE,
titleSize = NULL,
relHeights = 1,
relWidths = 1,
labelSamples = TRUE,
plotNCols = NULL,
plotNRows = NULL,
samplePerColumn = TRUE,
sampleRelHeights = 1,
sampleRelWidths = 1
)
inSCE |
Input SingleCellExperiment object with saved
dimension reduction components or a variable with saved results from
|
sample |
Character vector or colData variable name. Indicates which
sample each cell belongs to. Default |
groupBy |
Groupings for each numeric value. Users may input a vector
equal length to the number of the samples in |
combinePlot |
Must be either |
violin |
Boolean. If |
boxplot |
Boolean. If |
dots |
Boolean. If |
dotSize |
Size of dots. Default |
summary |
Adds a summary statistic, as well as a crossbar to the
violin plot. Options are |
summaryTextSize |
The text size of the summary statistic displayed
above the violin plot. Default |
baseSize |
The base font size for all text. Default |
axisSize |
Size of x/y-axis ticks. Default |
axisLabelSize |
Size of x/y-axis labels. Default |
transparency |
Transparency of the dots, values will be 0-1. Default |
defaultTheme |
Removes grid in plot and sets axis title size to
|
titleSize |
Size of title of plot. Default |
relHeights |
Relative heights of plots when combine is set. Default
|
relWidths |
Relative widths of plots when combine is set. Default
|
labelSamples |
Will label sample name in title of plot if |
plotNCols |
Number of columns when plots are combined in a grid. Default
|
plotNRows |
Number of rows when plots are combined in a grid. Default
|
samplePerColumn |
If |
sampleRelHeights |
If there are multiple samples and combining by
|
sampleRelWidths |
If there are multiple samples and combining by
|
list of .ggplot objects
runPerCellQC
data(scExample, package = "singleCellTK")
sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'")
sce <- runPerCellQC(sce)
plotRunPerCellQCResults(inSCE = sce)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.