ggplot2.heatmap: ggplot2.heatmap

View source: R/mu_ggplots2_ext.R

ggplot2.heatmapR Documentation

ggplot2.heatmap

Description

converts a matrix or dataframe into a ggplot2 object for subsequent plotting.

Usage

ggplot2.heatmap(mm, add.text = FALSE)

Arguments

mm

matrix or dataframe to be plottet as heatmap

add.text

logical. should the cells be labelled with the values

Value

the ggplot2 object (can be extended for plotting)

Examples

ggplot2.heatmap(airquality[1:15,],add.text=TRUE) + scale_fill_gradient(low = "red",high = "steelblue"))

demuellae/muRtools documentation built on Sept. 8, 2023, 4:32 p.m.