SingleExIPlot: Plot a single expression by identity on a plot

View source: R/visualization.R

SingleExIPlotR Documentation

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,
  alpha = 1,
  cols = NULL,
  seed.use = 42,
  log = FALSE,
  add.noise = TRUE,
  raster = NULL
)

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

alpha

Alpha vlaue 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.

Value

A ggplot-based Expression-by-Identity plot


Seurat documentation built on Nov. 18, 2023, 1:10 a.m.