View source: R/visualization.R
SingleRasterMap | R Documentation |
A single heatmap from ggplot2 using geom_raster
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
)
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 |
A ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.