View source: R/scPopulationPlot.R
scPopulationPlot | R Documentation |
Population plot by clusters or samples
scPopulationPlot(
object = NULL,
by = c("sample", "cluster"),
order = NULL,
cols = NULL
)
object |
Seurat object |
by |
String used to separate cluster/sample, only 'cluster' or 'sample' is accepted |
order |
A vector to set the order of samples |
cols |
Vector of colors, each color corresponds to an identity class. Use ggplot2's default colors by default. We include a pallete called 'sc' which consists of 36 colors |
A dataframe that used to draw this plot
data("H3N2_small")
scPopulationPlot(object = H3N2_small,
by = "sample",
cols = NULL,
order = c("Bystander", "Infected")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.