plotqcDoubletClusters | R Documentation |
findDoubletClusters
outputThis function produces QC plots to aid deciding potential doublet clusters
after running findDoubletClusters()
from the scDblFinder package.
plotqcDoubletClusters(
dbl,
clusters = NULL,
cluster_color = NULL,
qc_plot = 0,
point_size = 2,
text_size = 6,
box.padding = 0.5,
point.padding = 0.5,
max.overlaps = Inf,
seed = 12321,
theme_size = 18
)
dbl |
A DataFrame returned by |
clusters |
A vector of length equal to number of rows in |
cluster_color |
A character vector of color codes indicating the
colour of the clusters. Default is |
qc_plot |
A numeric scalar indicating which QC plot to create. Default is 0 to produce a compound figure, or:
|
point_size |
A numeric scalar indicating the size of the points. Default is 2. |
text_size |
A numeric scalar indicating the size of the label.
This is passed to |
box.padding |
A scalar indicating the amount of padding around
bounding box, as unit or number. This is passed to |
point.padding |
A scalar indicating the amount of padding around
labeled point, 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 |
theme_size |
A numeric scalar indicating the base font size. Default is 18. |
A ggplot
object when qc_plot
is not 0, or a ggplot2
plot with an object of class c("gg", "ggplot")
when qc_plot = 0
I-Hsuan Lin
scDblFinder::findDoubletClusters()
library(SingleCellExperiment)
data(dbl_results)
# Create compound figure
plotqcDoubletClusters(dbl_results)
# Create median.de against num.de
plotqcDoubletClusters(dbl_results, qc_plot = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.