plot_cell_fraction: Plot cell fractions across groups

View source: R/plot_cell_fraction.R

plot_cell_fractionR Documentation

Plot cell fractions across groups

Description

This function is to show the cell fraction changes across groups.

Usage

plot_cell_fraction(
  seu_obj,
  celltypes = NULL,
  groupby,
  show_replicate = FALSE,
  rep_colname = NULL,
  strip.color = NULL
)

Arguments

seu_obj

A complete Seurat object

celltypes

Cell types to be included in the plot. Default: all cell types.

groupby

The group to show on x axis. One of the column names in meta.data.

show_replicate

Whether or not to show the individual replicate on the graph. If TRUE, the replicate column name needs to specify in the argument rep_colname.

rep_colname

The column name for biological replicates in the meta data.

strip.color

Colors for the strip background

Value

A ggplot object


HaojiaWu/plot1cell documentation built on Nov. 13, 2023, 9:20 a.m.