作者:Zuguang Gu8
翻译:Steven Shen
原文:https://jokergoo.github.io/ComplexHeatmap-reference/book/a-list-of-heatmaps.html#control-main-heatmap-in-draw-function
Settings of the main heatmap can be controlled in the main
Heatmap()
function. To make it convinient, settings that affect heatmap rows can also be directly set indraw()
. If some of these settings are set, corresponding settings in the mainHeatmap()
will be overwritten.In
draw()
function, following main heatmap settings control row orders of all heatmaps.
cluster_rows
clustering_distance_rows
clustering_method_rows
row_dend_width
show_row_dend
row_dend_reorder
row_dend_gp
row_order
Following settings control the row slices.
row_gap
row_km
row_km_repeats
row_split
Following settings control the heatmap height.
height
heatmap_height
In following example,
row_km = 2, cluster_rows = FALSE
forht1
is overwritten indraw()
.
ht1 = Heatmap(mat1, name = "rnorm", col = col_rnorm, row_km = 2, cluster_rows = FALSE)
ht2 = Heatmap(mat2, name = "runif", col = col_runif)
ht3 = Heatmap(le, name = "letters", col = col_letters)
ht_list = ht1 + ht2 + ht3
draw(ht_list, row_km = 1, row_split = le, cluster_rows = TRUE)