modify_vlnplot: Parse Seurat violin plot

Description Usage Arguments Details Value

View source: R/stackedViolin.R

Description

Helper function to reproduce scanpy stacked violin plot with Seurat.

Usage

1
2
3
4
5
6
7
modify_vlnplot(
  obj,
  feature,
  pt.size = 0,
  plot.margin = ggplot2::unit(c(-0.75, 0, -0.75, 0), "cm"),
  ...
)

Arguments

obj

A Seurat object.

pt.size

Size of jitter points. Default is 0 (No point is plotted).

plot.margin

Adjust the white space between each plot.

features

Genes to be plotted.

Details

With violin plot generated by 'Seurat::VlnPlot', this function removes its x-axis text and tick, and adjusts the white space between each plot with plot.margin argument. ... pass any arguments to VlnPlot in Seurat Credit to: Tang Ming https://divingintogeneticsandgenomics.rbind.io/post/stacked-violin-plot-for-visualizing-single-cell-data-in-seurat/

Value

A ggplot object


RuiyuRayWang/scWidgets documentation built on Dec. 18, 2021, 11:54 a.m.