Learn R Programming

ComplexHeatmap (version 1.10.2)

add_heatmap-HeatmapList-method: Add heatmaps and row annotations to the heatmap list

Description

Add heatmaps and row annotations to the heatmap list

Usage

## S3 method for class 'HeatmapList':
add_heatmap(object, x)

Arguments

object
x
a Heatmap-class object or a HeatmapAnnotation-class object or a HeatmapList-class object.

Value

Details

There is a shortcut function +.AdditiveUnit.

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_list = ht + ht
add_heatmap(ht_list, ht)

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

Run the code above in your browser using DataLab