draw-Heatmap-method: Draw a single heatmap

Description Usage Arguments Details Value Author(s) Examples

Description

Draw a single heatmap

Usage

1
2
## S4 method for signature 'Heatmap'
draw(object, internal = FALSE, test = FALSE, ...)

Arguments

object

a Heatmap-class object.

internal

only used inside the calling of draw,HeatmapList-method. Only heatmap without legends will be drawn.

test

only for testing

...

pass to draw,HeatmapList-method.

Details

The function creates a HeatmapList-class object which only contains a single heatmap and call draw,HeatmapList-method to make the final heatmap.

Value

This function returns no value.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
3
4
5
6
7
mat = matrix(rnorm(80, 2), 8, 10)
mat = rbind(mat, matrix(rnorm(40, -2), 4, 10))
rownames(mat) = letters[1:12]
colnames(mat) = letters[1:10]

ht = Heatmap(mat)
draw(ht, heatmap_legend_side = "left")

eilslabs/ComplexHeatmap documentation built on May 16, 2019, 1:21 a.m.