SingleRasterMap: A single heatmap from ggplot2 using geom_raster

View source: R/visualization.R

SingleRasterMapR Documentation

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
)

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

Value

A ggplot2 object


Seurat documentation built on May 29, 2024, 4:20 a.m.