plot_composition | R Documentation |
Plot differences in cell composition
plot_composition( obj, group.by, split.by = NULL, as.pie = FALSE, group.levels = NULL, split.levels = NULL, label = FALSE, label.pct = FALSE )
obj |
Seurat object |
group.by |
Meta.data column name to annotate |
split.by |
Meta.data column name to split plots |
as.pie |
Output plot as pie chart, defaults to FALSE |
group.levels |
Vector of levels to order group.by with |
split.levels |
Vector of levels to order split.by with |
label |
Labels to be plotted on plot instead of in legend, defaults to FALSE |
label.pct |
Label to be plotted with proportion, defaults to FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.