Description Usage Arguments Value
View source: R/nice_violin_plot.R
nicer looking version of the Seurat function VlnPlot.
1 2 3 4 5 6 7 8 9 10 | nice_violin_plot(
seurat_obj,
features,
group_by = NULL,
cols = NULL,
pt.size = 0.3,
sort = T,
n_col = NULL,
plot_hline = T
)
|
seurat_obj |
Seurat object. |
features |
genes to plot. |
group_by |
how to group your data, i.e the X axis of the plot - usually a metadata column in the seurat object. |
cols |
optional: colours to fill the violins with. |
pt.size |
size of plotted points. |
sort |
sort X axis in descending order of average expression? |
n_col |
if multiple features, how many columns to create in the final plot_grid object. |
plot_hline |
plot a dashed horizontal line at 0? |
violin plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.