作者: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_rowsclustering_distance_rowsclustering_method_rowsrow_dend_widthshow_row_dendrow_dend_reorderrow_dend_gprow_orderFollowing settings control the row slices.
row_gaprow_kmrow_km_repeatsrow_splitFollowing settings control the heatmap height.
heightheatmap_heightIn following example,
row_km = 2, cluster_rows = FALSEforht1is 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 + ht3draw(ht_list, row_km = 1, row_split = le, cluster_rows = TRUE)

