Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

regHeatmap

Regular heatmaps with a legend


Description

Creating regular heatmaps, without annotation, but allowing for a legend

Usage

regHeatmap(x, ...)

    ## Default S3 method:
regHeatmap(x, dendrogram = list(clustfun = hclust, distfun = dist, status = "yes"), labels = NULL, legend = TRUE, ...)

Arguments

x

a numerical matrix

dendrogram

a list controlling the options for row- and column dendrogram, see annHeatmap2

labels

a list controlling the row- and column labels as well as their location and size, see annHeatmap2

legend

either a logical value, indicating whether to draw a legend at the default location determined by the function, or one of the sides of the plot (1-4), see annHeatmap2

...

extra options passed to annHeatmap2

Details

A gelded wrapper for annHeatmap2 that allows for heatmaps without annotation or clustering on the dendrograms, but still offer some control over dendrograms, labels and legend.

These functions generate an object representing the heatmap; in order to produce graphical output, you have to invoke the plot method, see Examples.

Value

An object of class annHeatmap

See Also

Examples

## Default
    set.seed(219)
    mat = matrix(rnorm(100), ncol=5)
    map1 = regHeatmap(mat)
    plot(map1)

Heatplus

Heatmaps with row and/or column covariates and colored clusters

v2.36.0
GPL (>= 2)
Authors
Alexander Ploner <Alexander.Ploner@ki.se>
Initial release
2015-09-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.