draw-Heatmap-method {ComplexHeatmap} | R Documentation

## Draw a single heatmap

### Description

Draw a single heatmap

### Usage

    ## 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

    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")

[Package ComplexHeatmap version 1.18.1 Index]