add_heatmap-Heatmap-method {ComplexHeatmap} | R Documentation |
Add heatmaps or row annotations as a heatmap list
## S4 method for signature 'Heatmap' add_heatmap(object, x)
object |
a |
x |
a |
There is a shortcut function +.AdditiveUnit
.
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) add_heatmap(ht, ht) ha = HeatmapAnnotation(points = anno_points(1:12, which = "row"), which = "row") add_heatmap(ht, ha)