title: Reordering column nodes in heatmap.3 while maintaining dendrogram
body: <p><a href="https://i.stack.imgur.com/zsqGw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zsqGw.png" alt="enter image description here"></a></p>
  
  <p>I've generated this heatmap using heatmap.3. Clustering is performed based on the dendrogram, but for presentation purposed, I'd like to re-order the nodes such that dark blue is left and dark red is right while maintaining the dendrogram. I've read about re-order:
  newdendro&lt;-reorder(as.dendrogram(myclust(mydist(heatdata.scaled))),10:1,agglo.FUN=colSums)</p>
  
  <p>But colSums(heatdata.scaled) is not stored in the dendrogram. How do I 
  1) use colSums(heatdata.scaled) to reorder the nodes
  2) call this updated dendrogram in heatmap.3?</p>