CellPropPlot: Plot cell proportion

View source: R/visualization.R

CellPropPlotR Documentation

Plot cell proportion

Description

This function will generate a bar plot to visualize the cell proportion across different samples

Usage

CellPropPlot(object, group.by = NULL, prop.in = NULL, cols = NULL)

Arguments

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

Value

A ggplot object

Examples

library(Seurat)
data(pbmc_small)
CellPropPlot(
pbmc_small,
group.by = "RNA_snn_res.1",
prop.in = "groups"
)

CostaLab/scMEGA documentation built on Sept. 25, 2024, 6:11 a.m.