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 = HeatmapAnnotation(points = anno_points(1:12, which = "row"),
which = "row")
ht + ha
ht_list + ha
Run the code above in your browser using DataLab