cellRatioPlot: plot cell percentage barplot

View source: R/functions.R

cellRatioPlotR Documentation

plot cell percentage barplot

Description

support facet, codes refer to: https://github.com/junjunlab/scRNAtoolVis/blob/master/R/cellRatioPlot.R, with modification

Usage

cellRatioPlot(
  object = NULL,
  sample.name = NULL,
  sample.order = NULL,
  celltype.name = NULL,
  celltype.order = NULL,
  facet.name = NULL,
  facet.order = NULL,
  col.width = 0.7,
  flow.alpha = 0.25,
  flow.curve = 0,
  color.choice = NULL
)

Arguments

object

an Seurat object

sample.name

x axis

sample.order

order for x axis

celltype.name

column fill by

celltype.order

order for fill by

facet.name

column name for facet

facet.order

the order for facet

col.width

column width, from 0-1

flow.alpha

transparency for flow

flow.curve

curve for flow

color.choice

color choice for fill

Value

a ggplot2 object

Examples

#NULL

SeuratExplorer documentation built on April 4, 2025, 1:57 a.m.