nice_violin_plot_new: nice_violin_plot_new

View source: R/nice_violin_plot_new.R

nice_violin_plot_newR Documentation

nice_violin_plot_new

Description

nicer looking version of the Seurat function VlnPlot.

Usage

nice_violin_plot_new(
  seurat_obj,
  features,
  group_by = NULL,
  cols = NULL,
  pt.size = 0.3,
  sort = T,
  n_col = NULL,
  plot_hline = T,
  perform_stats = T
)

Arguments

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

Value

violin plot.


mvhunter1/mvhfunctions documentation built on May 31, 2024, 3:36 p.m.