Learn R Programming

Seurat (version 4.3.0.1)

SingleExIPlot: Plot a single expression by identity on a plot

Description

Plot a single expression by identity on a plot

Usage

SingleExIPlot(
  data,
  idents,
  split = NULL,
  type = "violin",
  sort = FALSE,
  y.max = NULL,
  adjust = 1,
  pt.size = 0,
  cols = NULL,
  seed.use = 42,
  log = FALSE,
  add.noise = TRUE,
  raster = NULL
)

Value

A ggplot-based Expression-by-Identity plot

Arguments

data

Data to plot

idents

Idents to use

split

Use a split violin plot

type

Make either a “ridge” or “violin” plot

sort

Sort identity classes (on the x-axis) by the average expression of the attribute being potted

y.max

Maximum Y value to plot

adjust

Adjust parameter for geom_violin

pt.size

Size of points for violin plots

cols

Colors to use for plotting

seed.use

Random seed to use. If NULL, don't set a seed

log

plot Y axis on log10 scale

add.noise

determine if adding small noise for plotting

raster

Convert points to raster format. Requires 'ggrastr' to be installed. default is NULL which automatically rasterizes if ggrastr is installed and number of points exceed 100,000.