BetterViolins: BetterViolins

View source: R/Seurat_based.R

BetterViolinsR Documentation

BetterViolins

Description

This function generates violin plots with customizable features.

Usage

BetterViolins(
  SerObj = NULL,
  feature2plot = "nCount_RNA",
  featuredummy = "nFeature_RNA",
  group.by = "ExpID",
  downsampleN = 500,
  title = "",
  ComplexPlot = F,
  log10Y = T
)

Arguments

SerObj

a data frame or a Seurat object containing the expression data

feature2plot

a string indicating the feature to plot on the y-axis (default: "nCount_RNA")

featuredummy

a string indicating a dummy feature to plot on the x-axis (default: "nFeature_RNA")

group.by

a string indicating the grouping variable (default: "ExpID")

downsampleN

an integer indicating the number of cells to downsample to (default: 500)

title

a string indicating the title of the plot (default: "")

ComplexPlot

a boolean indicating whether to generate a complex plot or not (default: FALSE)

log10Y

a boolean indicating whether to use log10 transformation on the y-axis (default: TRUE)

Value

a ggplot object


eisascience/scCustFx documentation built on June 2, 2025, 3:59 a.m.