Closed ahdee closed 3 years ago
Yes, you can :)
First, calculate the column dendrogram with mat
; second, use a zero-row matrix for Heatmap()
:
column_dend = hclust(dist(t(mat)))
Heatmap(matrix(nrow = 0, ncol = ncol(mat)),
cluster_columns = column_dend,
top_annotation = column_ha,
column_split = 3
)
That is awesome, thanks a bunch. Looks great.
Hi weird question, but I really like how easy it is to add annotations with dendograms. Is there a way to just plot everything the same but somehow hide/ignore the heatmap portion. Here is an example: