+.AdditiveUnit {ComplexHeatmap} | R Documentation |
Add heatmaps or row annotations to a heatmap list
## S3 method for class 'AdditiveUnit' x + y
x |
a |
y |
a |
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.
A HeatmapList-class
object.
Zuguang Gu <z.gu@dkfz.de>
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