title: Adjusting position of colorbar tick labels in ggplot2
body: <p>I'm trying to slightly reposition the labels of a discrete colorbar so that they don't overlap, without changing the values of the breaks themselves. In the below plot, the two center labels (bracketing the near-zero data) are too close together, so that it looks like '-11' instead of '-1' and '1'. I'd like to nudge them to either side, or change the justification of each half of the scale (left justify the negatives and right justify the positives), or anything to create more space between the labels while retaining the spacing of the actual colorbar. (Making the colorbar wider is not an option in my actual figure.)</p>
  <p><a href="https://i.stack.imgur.com/VYufU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VYufU.png" alt="example figure" /></a></p>
  <p>Here is the code used to create this plot:</p>
  <pre><code>library(dplyr)
  library(ggplot2)
  library(scales)
  
  df &lt;- data.frame(
    x = runif(1000),
    y = runif(1000),
    z1 = rnorm(100)*10
  )
  
  df %&gt;% ggplot() + 
    geom_point(aes(x=x,y=y, color=z1)) + 
    scale_color_steps2(low = muted(&quot;darkblue&quot;), mid = &quot;white&quot;, high = muted(&quot;darkred&quot;), 
                       midpoint = 0, guide_colorbar(barwidth = 20),
                       breaks = c(-20, -10, -5, -1, 1, 5, 10, 20)) + 
    theme_minimal() + 
    theme(legend.position = 'bottom') +
    labs(x='', y='', color='')
  
  </code></pre>