talgalili / heatmaply

Interactive Heat Maps for R Using plotly
377 stars 74 forks source link

Grouping Heatmaps #230

Open sbenderb opened 4 years ago

sbenderb commented 4 years ago

Other libraries allow the grouping of several heatmaps into a single output/image (with the option to add a "grouping" annotation); is there a way to do this with heatmaply?

I know this is possible after downloading each individual as a png and then grouping them, but I'd like to be able to group them and possibly annotate them before downloading the whole image as a png.

alanocallaghan commented 4 years ago

Can you provide a concrete example of what you want to accomplish (eg in ComplexHeatmap code). I suspect the answer is, "no and it would be too difficult to implement".

You might be better off looking at https://github.com/ropensci/iheatmapr/

Yunuuuu commented 2 weeks ago

Hi, a simple solution would be to draw twice of the horizontal lines for the dendrogram. We just need update the underlying dendrogram data.

I use this function to create the dendrogram data see https://github.com/Yunuuuu/ggalign/blob/c4db734e86ebd2f490e7c18ef62c448d00f5b691/R/dendrogram.R#L131 You can copy this code to generate the unnderlying data for dendrogram.

I have successfully use this method to create facetted heatmap, gwmTsREI