title: How to color a group of labels or branches in heatmap.2 in R
body: <p>By using the data from <code>?heatmap.2</code>:</p>
  
  <pre><code>data(mtcars)
  x&lt;-scale(mtcars)
  
  
  set.seed(123)
  tf&lt;-sample(rownames(x), 5)
  tf
  
  [1] "Merc 280"         "Pontiac Firebird" "Merc 450SL"  
   "Fiat X1-9"        "Porsche 914-2" 
  
  heatmap.2(x)
  </code></pre>
  
  <p>what I wanted is to color row names in <code>tf</code> (on the right) in red or the branches of these names (on the left) in red color (or both in red will be greater). I dug around and can't find the solutions. Does anybody have suggestions using the above sample?</p>