View source: R/Visualizations_Seurat_based.R
plot_violin_wpvalue | R Documentation |
This function generates a plot of violin plots with Wilcoxon p-values for the given feature and groupings in a Seurat object.
plot_violin_wpvalue(
SerObj,
feature,
group.by = "ident",
layer = "data",
GrpFacLevels = NULL,
assay = "RNA",
colors = col_vector,
comparisons = NULL,
title = "",
doJitter = T
)
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). |
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.