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


    The width for some heatmaps can be set to absolute units. Note width controls the width of the heatmap body.

    1. ht2 = Heatmap(mat2, name = "runif", col = col_runif, width = unit(4, "cm"))
    2. ht3 = Heatmap(le, name = "letters", col = col_letters, width = unit(5, "mm"))
    3. ht1 + ht2 + ht3

    4.2 热图大小 - 图1

    If width is numeric, it is converted as a null unit.

    1. ht1 = Heatmap(mat1, name = "rnorm", col = col_rnorm, width = 6)
    2. ht2 = Heatmap(mat2, name = "runif", col = col_runif, width = 4)
    3. ht3 = Heatmap(le, name = "letters", col = col_letters, width = 1)
    4. ht1 + ht2 + ht3

    4.2 热图大小 - 图2

    heatmap_width also can control the width of the heatmap, but it is the total width of the heatmap body plus the heatmap components.