title: R: ggplot heatmap color change
body: <pre><code>df.team_data &lt;- expand.grid(teams = c("Team A", "Team B", "Team C", "Team D")
                             ,metrics = c("Metric 1", "Metric 2", "Metric 3", "Metric 4", "Metric 5")
                             )
  set.seed(41)
  df.team_data$performance &lt;- sample(c(0, 1), 20, replace = TRUE)
  
  head(df.team_data)
  ggplot(data = df.team_data, aes(x = metrics, y = teams)) +
    geom_tile(aes(fill = performance)) 
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/bLAsO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bLAsO.png" alt="enter image description here"></a></p>
  
  <p>I have a very simple heatmap with just two colors. How do I designate which colors are associated with the value of <code>performance</code>? For this, I would like performance of 1 to be dark blue, and performance of 0 to be light blue. Also, is there a way to change the legend to be binary?</p>