title: ggplot2 fix overlapping y-labels
body: <p><strong>Code example</strong><br>
  Let me take this little example:</p>
  
  <pre><code>example.data &lt;- data.frame(
    x = seq(1,5),
    y = c(seq(1,3), 4.1, 4.11),
    y.label = letters[1:5]
  )
  
  
  library(ggplot2)
  ggplot(example.data, aes(x=x, y = y)) + 
    geom_point() +
    scale_y_continuous(breaks = example.data$y, labels = example.data$y.label)
  </code></pre>
  
  <p>Since 4.1 and 4.11 are extremely close to one another the labels will overlap:</p>
  
  <p><a href="https://i.stack.imgur.com/dHMJo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dHMJo.png" alt="enter image description here"></a></p>
  
  <p><strong>Info</strong> <br>
  I plot a very similar graph for a publication and do not want to increase the size of the figure just to make the labels fit (which would require the plot to be very large). I'm familiar with <a href="https://cran.r-project.org/web/packages/ggrepel/vignettes/ggrepel.html" rel="nofollow noreferrer"><code>ggrepel</code></a>, but as far as I know this only works for text annotation within the plot itself and not for axis. </p>
  
  <p><strong>Question</strong><br>
  How can I make sure that the labels do not overlap without having to increase the size of the whole plot?</p>