This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Draw multiple heatmaps

Hi,

I used the function heatmap.2() to draw heatmaps and I want to put several heatmaps together in one plots. Could you please tell me how can I do that?

Thanks a lot

heatmap.2 r

3 answers

Best option is using ComplexHeatmap.

"Best" is a strong word, but I agree that ComplexHeatmap is pretty nice.

It's often easier to generate figure parts (e.g. heatmaps) independently and then assemble them manually into a final figure using another software such as Inkscape or Illustrator.

You cannot do that with heatmap.2() due to the way it lays out the graph. Try the aheatmap() function from the NMF package. You should be able to use thelayout() command with these heatmaps.

Log in to answer this question.