Plots a Violin plot of a single data (gene expression, metrics, etc.) grouped by a metadata variable
plot_violin(
seu,
plot_var = "batch",
plot_vals = NULL,
features = "RXRG",
assay = "gene",
...
)
A Seurat object
Variable to group (color) cells by
Features to plot
Name of assay to use, defaults to the active assay
plot_violin(human_gene_transcript_seu, plot_var = "batch", features = c("NRL", "GNAT2"))
#> Error in geom_boxplot(width = 0.2): could not find function "geom_boxplot"