plot_per_cluster: plot_per_cluster

View source: R/plot_per_cluster.R

plot_per_clusterR Documentation

plot_per_cluster

Description

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.

Usage

plot_per_cluster(seurat_obj, group_clusters, metadata_col_to_plot, cols = NULL)

Arguments

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.

Value

violin plot.


mvhunter1/mvhfunctions documentation built on May 31, 2024, 3:36 p.m.