add.AdditiveUnit: Add heatmaps or row annotations to a heatmap list

Description Usage Arguments Details Value Author(s) Examples

Description

Add heatmaps or row annotations to a heatmap list

Usage

1
2
## S3 method for class 'AdditiveUnit'
x + y

Arguments

x

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

y

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

Details

It is only a helper function. It actually calls add_heatmap,Heatmap-method, add_heatmap,HeatmapList-method or add_heatmap,HeatmapAnnotation-method depending on the class of the input objects.

The HeatmapAnnotation-class object to be added should only be row annotations.

Value

A HeatmapList-class object.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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 = rowAnnotation(points = row_anno_points(1:12))
ht + ha
ht_list + ha

ha + ha + ht

eilslabs/ComplexHeatmap documentation built on May 16, 2019, 1:21 a.m.