作者:Zuguang Gu8
    翻译:Steven Shen
    原文:https://jokergoo.github.io/ComplexHeatmap-reference/book/a-list-of-heatmaps.html#heatmap-list-titles


    A heatmap list also has title which is like a global title covering all heatmaps. row_title and column_title should be set in the draw() function.

    From following example, we set different colors for each heatmap to make them distinguishable.

    1. col_rnorm = colorRamp2(c(-3, 0, 3), c("green", "white", "red"))
    2. col_runif = colorRamp2(c(0, 3), c("white", "orange"))
    3. col_letters = c("a" = "pink", "b" = "purple", "c" = "blue")
    4. ht1 = Heatmap(mat1, name = "rnorm", col = col_rnorm,
    5. row_title = "Heatmap 1", column_title = "Heatmap 1")
    6. ht2 = Heatmap(mat2, name = "runif", col = col_runif,
    7. row_title = "Heatmap 2", column_title = "Heatmap 2")
    8. ht3 = Heatmap(le, name = "letters", col = col_letters)
    9. ht_list = ht1 + ht2 + ht3
    10. draw(ht_list, row_title = "Three heatmaps, row title", row_title_gp = gpar(col = "red"),
    11. column_title = "Three heatmaps, column title", column_title_gp = gpar(fontsize = 16))

    4.1 标题 - 图1