View source: R/visualization.R
CellPropPlot | R Documentation |
This function will generate a bar plot to visualize the cell proportion across different samples
CellPropPlot(object, group.by = NULL, prop.in = NULL, cols = NULL)
object |
Seurat object |
group.by |
Name of one metadata column to group the cells |
prop.in |
Name of one metadata column to compute the cell proportion |
cols |
Specific colors for plotting |
A ggplot object
library(Seurat)
data(pbmc_small)
CellPropPlot(
pbmc_small,
group.by = "RNA_snn_res.1",
prop.in = "groups"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.