text: user4595: I plotted a heatmap
  I want cancer to be red and healthy to be blue
     pheatmap(heat1, annotation_col=df,color=colorRampPalette(c("navy", "white", "red"))(50))
  
  You are seeing cancer is in blue in annotation, how I can change that
  
  user14639: It is possible with annotation_colors argument :
  First create a list with your conditions and then add the argument :
  annot_colors=list(HealthStatus=c(Cancer="#F0978D",Healthy="#63D7DE"))
      
  pheatmap(heat1,
           annotation_col=df,
           color=colorRampPalette(c("navy", "white", "red"))(50),
           annotation_colors=annot_colors)
  
  
original_text: 4595: <p>I plotted a heatmap</p>
  <p>I want cancer to be red and healthy to be blue</p>
  <pre><code>   pheatmap(heat1, annotation_col=df,color=colorRampPalette(c(&quot;navy&quot;, &quot;white&quot;, &quot;red&quot;))(50))
  </code></pre>
  <p>You are seeing cancer is in blue in annotation, how I can change that<a href="https://i.stack.imgur.com/iHsFn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iHsFn.png" alt="enter image description here" /></a></p>
   14639: <p>It is possible with <code>annotation_colors</code> argument :</p>
  <p>First create a list with your conditions and then add the argument :</p>
  <pre><code>annot_colors=list(HealthStatus=c(Cancer=&quot;#F0978D&quot;,Healthy=&quot;#63D7DE&quot;))
      
  pheatmap(heat1,
           annotation_col=df,
           color=colorRampPalette(c(&quot;navy&quot;, &quot;white&quot;, &quot;red&quot;))(50),
           annotation_colors=annot_colors)
  </code></pre>
  