BetterViolins | R Documentation |
This function generates violin plots with customizable features.
BetterViolins(
SerObj = NULL,
feature2plot = "nCount_RNA",
featuredummy = "nFeature_RNA",
group.by = "ExpID",
downsampleN = 500,
title = "",
ComplexPlot = F,
log10Y = T
)
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) |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.