View source: R/plot_per_cluster.R
plot_per_cluster | R Documentation |
plot the relative proportion of cells per cluster grouped by a categorical variable. for example, percentage of cells per cluster in each of the 3 cell cycle phases.
plot_per_cluster(seurat_obj, group_clusters, metadata_col_to_plot, cols = NULL)
seurat_obj |
Seurat object. |
group_clusters |
the metadata column you want to group the clusters by, e.g cell type. |
metadata_col_to_plot |
the metadata column you want to plot the proportion of cells per cluster for, e.g cell cycle phase. |
cols |
optional: colours to plot the diff levels of metadata_col_to_plot by. |
violin plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.