regHeatmap: Regular heatmaps with a legend

Description Usage Arguments Details Value See Also Examples

View source: R/annHeatmap.R

Description

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

Usage

1
2
3
4
    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

annHeatmap, annHeatmap2, plot.annHeatmap

Examples

1
2
3
4
5
6
7
    
    ## Default
    set.seed(219)
    mat = matrix(rnorm(100), ncol=5)
    map1 = regHeatmap(mat)
    plot(map1)
  

Heatplus documentation built on Nov. 8, 2020, 6:24 p.m.