BetterVlnPlot: Generate violin plots from a Seurat object and vector of...

View source: R/BetterVlnPlot.R

BetterVlnPlotR Documentation

Generate violin plots from a Seurat object and vector of genes.

Description

Generate violin plots from a Seurat object and vector of genes.

Usage

BetterVlnPlot(
  seurat,
  clus_ident = "seurat_clusters",
  condition_ident = vector(),
  features,
  assay = "RNA",
  idents_to_plot = vector(),
  ncol = 1,
  dot_size = 1,
  y_axis_title = "log normalized counts"
)

Arguments

seurat

seurat object

clus_ident

Identity for clusters. 'seurat_clusters' by default.

condition_ident

name of metadata column to split plots by

features

vector of gene/feature names to plot

assay

assay to plot from. default = 'RNA'

idents_to_plot

vector of a subset of specific idents within clus_ident to plot

ncol

number of columns if plotting multiple genes

dot_size

size of dots. Set to NA to remove dots

y_axis_title

y-axis label. Default is 'log normalized counts'


mgildea87/CVRCFunc documentation built on Nov. 9, 2024, 7:39 p.m.