complex_dotplot_single: Plot single gene across groups

View source: R/plot_dot.R

complex_dotplot_singleR Documentation

Plot single gene across groups

Description

This function can be used for plotting a single gene expression across different groups in a study with complex group design.

Usage

complex_dotplot_single(
  seu_obj,
  feature,
  celltypes = NULL,
  groups,
  splitby = NULL,
  color.palette = NULL,
  font.size = 12,
  strip.color = NULL,
  do.scale = T,
  scale.by = "radius"
)

Arguments

seu_obj

A complete Seurat object.

feature

Gene name. Only one gene is allowed.

celltypes

Cell types to be included in the dot plot. Default: all cell types.

groups

The group to show on x axis. One of the column names in meta.data.

splitby

The group to separate the gene expression. One of the column names in meta.data.

color.palette

Color for gene expression.

font.size

Font size for the labels.

strip.color

Colors for the strip background.

do.scale

Whether or not to scale the dot when percentage expression of the gene is less than 20.

scale.by

Methods to scale the dot size. "radius" or "size".

Value

A ggplot object


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