Description Usage Arguments Details Value
View source: R/stackedViolin.R
Helper function to reproduce scanpy stacked violin plot with Seurat.
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"),
...
)
|
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. |
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/
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.