add_heatmap-HeatmapAnnotation-method: Add row annotations or heatmaps as a heatmap list

Description Usage Arguments Details Value Author(s) Examples

Description

Add row annotations or heatmaps as a heatmap list

Usage

1
2
## S4 method for signature 'HeatmapAnnotation'
add_heatmap(object, x)

Arguments

object

a HeatmapAnnotation-class object.

x

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

Details

There is a shortcut function +.AdditiveUnit.

Value

A HeatmapList-class object.

Author(s)

Zuguang Gu <[email protected]>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

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

eilslabs/ComplexHeatmap documentation built on Oct. 19, 2017, 2:13 p.m.