作者: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
widthcontrols the width of the heatmap body.
ht2 = Heatmap(mat2, name = "runif", col = col_runif, width = unit(4, "cm"))ht3 = Heatmap(le, name = "letters", col = col_letters, width = unit(5, "mm"))ht1 + ht2 + ht3
If
widthis numeric, it is converted as anullunit.
ht1 = Heatmap(mat1, name = "rnorm", col = col_rnorm, width = 6)ht2 = Heatmap(mat2, name = "runif", col = col_runif, width = 4)ht3 = Heatmap(le, name = "letters", col = col_letters, width = 1)ht1 + ht2 + ht3

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

