title: R, ggplot: Decimals on y-axis
body: <p>I want to produce a bar plot, similar to this MWE:</p>
  
  <pre><code>library(tidyverse)
  library(ggplot2)
  
  mtcars %&gt;% 
    mutate(mpg=mpg/1000) %&gt;% 
    ggplot(aes(x=cyl, y=mpg)) +
    geom_bar(stat="identity") +
    scale_y_continuous(labels = scales::percent)
  </code></pre>
  
  <p>What I get is the following (keep in mind that it is nonsense, but serves illustration purposes):
  <a href="https://i.stack.imgur.com/DxgCK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DxgCK.png" alt="enter image description here"></a>
  Now, I want the decimals replaced from the percentages on the y-axis ("30%" instead of "30.0%"). What can I do?</p>
  
  <p>I have found a similar question <a href="https://stackoverflow.com/questions/28845002/percent-labels-in-scale-x-log10">here</a>, but couldn't make the function <code>NRPercent</code> does not work (and can't comment there). </p>