Learn R Programming

SeuratExplorer (version 0.1.0)

cellRatioPlot: 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
)

Value

a ggplot2 object

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

Examples

Run this code
#NULL

Run the code above in your browser using DataLab