StackedVlnPlot: Stacked Violin plot

View source: R/visualization.R

StackedVlnPlotR Documentation

Stacked Violin plot

Description

Stacked Violin plot

Usage

StackedVlnPlot(
  object,
  features,
  idents = NULL,
  split.by = NULL,
  color.use = NULL,
  colors.ggplot = FALSE,
  show.median = FALSE,
  median.size = 1,
  angle.x = 90,
  vjust.x = NULL,
  hjust.x = NULL,
  show.text.y = TRUE,
  line.size = NULL,
  pt.size = 0,
  plot.margin = margin(0, 0, 0, 0, "cm"),
  ...
)

Arguments

object

seurat object

features

Features to plot (gene expression, metrics)

idents

Which classes to include in the plot (default is all)

split.by

Name of a metadata column to split plot by;

color.use

defining the color for each cell group

colors.ggplot

whether use ggplot color scheme; default: colors.ggplot = FALSE

show.median

whether show the median value

median.size

the shape size of the median

angle.x

angle for x-axis text rotation

vjust.x

adjust x axis text

hjust.x

adjust x axis text

show.text.y

whther show y-axis text

line.size

line width in the violin plot

pt.size

size of the dots

plot.margin

adjust the white space between each plot

...

Extra parameters passed to VlnPlot from Seurat package

Value

ggplot2 object


sqjin/CellChat documentation built on Nov. 10, 2023, 4:29 a.m.