title: Set 0-point for pheatmap in R
body: <p>How can you set the 0-point on the color scale to white in this heatmap? Does it use the <code>breaks</code> parameter?</p>
  
  <p>In the following code, white is set to 3 (or nearby on the scale):</p>
  
  <pre><code>test = matrix(rnorm(200), 20, 10)
  test[1:10, seq(1, 10, 2)] = test[1:10, seq(1, 10, 2)] + 3
  test[11:20, seq(2, 10, 2)] = test[11:20, seq(2, 10, 2)] + 2
  test[15:20, seq(2, 10, 2)] = test[15:20, seq(2, 10, 2)] + 4
  colnames(test) = paste("Test", 1:10, sep = "")
  rownames(test) = paste("Name", 1:20, sep = "")
  pheatmap(test, color = colorRampPalette(c("yellow", "white", "blue"))(50))
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/KRYKK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KRYKK.png" alt="enter image description here"></a></p>