Learn R Programming

ComplexHeatmap (version 1.10.2)

HeatmapList-class: Class for a list of heatmaps

Description

Class for a list of heatmaps

Arguments

Methods

The HeatmapList-class provides following methods:

Details

A heatmap list is defined as a list of heatmaps and row annotations.

The components for the heamtap list are placed into a 7 x 7 layout:

+------+(1) +------+(2) +------+(3) +-+-+-+------+-+-+-+ |1|2|3| 4(4) |5|6|7| +-+-+-+------+-+-+-+ +------+(5) +------+(6) +------+(7)

From top to bottom in column 4, the regions are:

From left to right in row 4, the regions are:

For the list of heatmaps which are placed at (5, 5) in the layout, the heatmaps and row annotations are placed one after the other.

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)
ht + ht
ht + ht + ht

ht_list = ht + ht
ht + ht_list

ha = HeatmapAnnotation(points = anno_points(1:12, which = "row"), 
    which = "row")
ht + ha
ht_list + ha

Run the code above in your browser using DataLab