Question: Can I change the order by which heatmap cluster branches appear in R?
0
gravatar for MicroGirl
3.8 years ago by
MicroGirl0
MicroGirl0 wrote:

Hi there!

I have 3 heatmaps: each one for a different growth temperature: 10, 20 and 30 ÂșC for 3 bacterial species (each one with 3 replicates): species A, B and C. In the first heatmap the three replicates of A are in one major branch and B and C are in another another major branch (the replicates of B are then separated from the replicates of C). In the second heatmap B is separated from A and C. And in the third C is separated from B an A. This means that my species appear in different order in the different heatmaps (I know it is logical because it is organized by similarity given by euclidean distance). However, for visual purposes my thesis advisor wants them to stay in the same order (A, B and C) in the three heatmaps. Is there a way to do this with R? Or it is logically impossible?

Thank you! :)

heatmap R cluster • 2.2k views
ADD COMMENTlink modified 3.8 years ago by Jean-Karim Heriche21k • written 3.8 years ago by MicroGirl0
1
gravatar for Jean-Karim Heriche
3.8 years ago by
EMBL Heidelberg, Germany
Jean-Karim Heriche21k wrote:

In heatmap(), you can use the reorder.dendrogram() function to constrain the order of the leaves.

ADD COMMENTlink written 3.8 years ago by Jean-Karim Heriche21k
Please log in to add an answer.

Help
Access

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