Learn R Programming

Seurat (version 5.0.3)

SingleRasterMap: A single heatmap from ggplot2 using geom_raster

Description

A single heatmap from ggplot2 using geom_raster

Usage

SingleRasterMap(
  data,
  raster = TRUE,
  cell.order = NULL,
  feature.order = NULL,
  colors = PurpleAndYellow(),
  disp.min = -2.5,
  disp.max = 2.5,
  limits = NULL,
  group.by = NULL
)

Value

A ggplot2 object

Arguments

data

A matrix or data frame with data to plot

raster

switch between geom_raster and geom_tile

cell.order

...

feature.order

...

colors

A vector of colors to use

disp.min

Minimum display value (all values below are clipped)

disp.max

Maximum display value (all values above are clipped)

limits

A two-length numeric vector with the limits for colors on the plot

group.by

A vector to group cells by, should be one grouping identity per cell