title: How to change y-axis to percentages with ggplot2 in R?
body: <p>I have a code segment like this in R, which I use for plotting:</p>
  
  <pre><code>plot_bar &lt;- function(x, y, min, max, color = plot_colors[2]) {
    p &lt;- ggplot(data.frame(as.integer(x), y)) +
      geom_bar(aes(x, y), stat = "identity", position = "dodge", fill = color) + ylim(min, max) + 
      theme_light() + theme(text = element_text(size = 25), axis.title.x = element_blank(), axis.title.y = element_blank())
  
    return(p)
  }
  </code></pre>
  
  <p>This works for me, and produces something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/niAuC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/niAuC.png" alt="enter image description here"></a></p>
  
  <p>Basically, the <code>(-2,+2)</code> is passed to my plot from values of <code>min</code> and <code>max</code> arguments in the function. But the problem is that, instead of <code>(-2.+2)</code> for y-axis I want to have <code>(-0.1%,+0.1%)</code>. Is it possible to change the text in the y-axis?</p>