jokergoo / circlize

Circular visualization in R
http://jokergoo.github.io/circlize_book/book/
Other
959 stars 141 forks source link

How to keep branches of dendrogram between sectors #396

Open ayeTown opened 1 month ago

ayeTown commented 1 month ago

Hi there! I have been using your package to create circular dendrograms with heatmaps. I used the sector functionality to chop both the heatmap track and dendrogram track into clusters. I was wondering if there is still a way to keep the branches of the dendrogram that connect different clusters. Is this possible? For example, in your book where you have Figure 5.4, is it possible to keep the branches of the dendrogram connecting the two major clusters/heatmaps? I created the edges I would like to retain in red in the screenshot below. Thanks so much for your time.

Screenshot 2024-07-15 at 5 21 43 PM
ayeTown commented 1 month ago

@jokergoo could you point me to where in the code the branches are being removed? I may be able to change this myself.