plot_violin_wpvalue: Plot violin plots with Wilcoxon p-values

View source: R/Visualizations_Seurat_based.R

plot_violin_wpvalueR Documentation

Plot violin plots with Wilcoxon p-values

Description

This function generates a plot of violin plots with Wilcoxon p-values for the given feature and groupings in a Seurat object.

Usage

plot_violin_wpvalue(
  SerObj,
  feature,
  group.by = "ident",
  layer = "data",
  GrpFacLevels = NULL,
  assay = "RNA",
  colors = col_vector,
  comparisons = NULL,
  title = "",
  doJitter = T
)

Arguments

SerObj

A Seurat object containing the data.

feature

The feature to plot.

group.by

The grouping variable to use for the plot (default: "ident").

layer

The layer to use for the plot (default: "data").

GrpFacLevels

Optional vector of grouping factor levels to plot.

assay

The assay to use for the plot (default: "RNA").

colors

A vector of colors to use for the plot.

comparisons

A list of pairwise comparisons to perform.

title

A string to use as the plot title.

doJitter

Whether to add jitter to the points (default: TRUE).

Value

A ggplot object.


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