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
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 the layout() command with these heatmaps.