nice_violin_plot: nice_violin_plot

Description Usage Arguments Value

View source: R/nice_violin_plot.R

Description

nicer looking version of the Seurat function VlnPlot.

Usage

 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
)

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?

Value

violin plot.


mvhunter1/mvhspatialplots documentation built on April 24, 2021, 10:52 a.m.