ComplexHeatmap (version 1.10.2)

draw-Heatmap-method: Draw a single heatmap

Description

Draw a single heatmap

Usage

## S3 method for class '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

Value

  • This function returns no value.

Details

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

Examples

Run this code
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")

Run the code above in your browser using DataCamp Workspace