This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to shown genes in the left side in heatmap2 function

Dear all,

I would like to ask you. How to shown gene names on the left side of heatmap, while dendrogram is shown on the right side.

r rna-seq rna-seq

1 answer

Dear Mehmet,

You can do this in ComplexHeatmap by specifying the following parameters to the Heatmap() function:

  • row_names_side="left"
  • row_dend_side="right"

To do this in heatmap.2, I imagine that you would have to edit the base code of the function or just edit the resulting figure in a third-party graphics editor. The manual page for heatmap.2 state definitively that the dendrogram will be generated on the left side.

Kevin

Log in to answer this question.