View source: R/nice_violin_plot.R
nice_violin_plot | R Documentation |
nicer looking version of the Seurat function VlnPlot.
nice_violin_plot(
seurat_obj,
features,
group_by = NULL,
cols = NULL,
pt.size = 0.3,
sort = T,
n_col = NULL,
plot_hline = T,
perform_stats = 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? |
perform_stats |
perform pairwise wilcoxon rank sum test between groups and print P values? *** only works for single plots for now |
violin plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.