Question: Drawing a HeatMapList while retaining the original row order of each heat map
gravatar for d r
19 months ago by
d r150
d r150 wrote:

The ComplexHeatmap documenation, under 'Making a list of Heatmaps' states that:

"Under default mode, dendrograms from the second heatmap will be removed and row orders will be same as the first one."

Is it possible to draw multiple heatmaps from a HeatMapList side by side while retaining the original dendrogram and row order of each heatmap?

I know I can display the row order of each heatmap at a time by modifying the main_heatmap parameter, e.g.:



But since I am interested in comparing the row order of the same data under different clustering methods, it would be much more convenient if I could draw the two heatmaps side by side. 

I tried using:




But it seems that draw() suppress layout().

Thanks in advance

Dolev Rahat



ADD COMMENTlink modified 19 months ago by Steve Lianoglou12k • written 19 months ago by d r150
gravatar for Steve Lianoglou
19 months ago by
Steve Lianoglou12k wrote:

While I'm definitely no authority on the subject, it seems doubtful given how it seems rowAnnotations work in the context of a HeatmapList.

If you're working outside of RStudio, you might consider just creating independent graphics devices and plotting your different heatmaps in each one to compare (ie. use call before creating each heatmap ... or save three files and open them up and compare externally.

All that having been said, the author of the ComplexHeatmap package has provided an insane amount of functionality already, and I wouldn't discount the possibility he's got something else hiding up his sleeve :-)

ADD COMMENTlink written 19 months ago by Steve Lianoglou12k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 239 users visited in the last hour