complex_vlnplot_multiple: Violin plot for multiple genes across groups

View source: R/plot_violin.R

complex_vlnplot_multipleR Documentation

Violin plot for multiple genes across groups

Description

This function generates violin plot(s) to compare the expression of multiple genes across different groups or cell types. It is designed for visualizing a complicated scenario: Gene expression of multiple genes on multiple cell types across groups.

Usage

complex_vlnplot_multiple(
  seu_obj,
  features,
  celltypes = NULL,
  group,
  add.dot = T,
  font.size = 12,
  pt.size = 0.1,
  alpha = 0.01,
  strip.color = NULL
)

Arguments

seu_obj

A complete Seurat object

features

Gene name. Only one gene is allowed.

celltypes

Cell types of interest. By default, all cell types are included.

group

Only one groupID is allowed.

add.dot

Whether or not to add points on the violins.

font.size

Font size for the labels.

pt.size

Point size for the data points on the violin

alpha

Point transparency. value from 0 to 1.

strip.color

Colors for the strip background

Value

A ggplot object


HaojiaWu/plot1cell documentation built on Nov. 13, 2023, 9:20 a.m.