title: How do I fix this in R studio?
body: <p>I made a barplot using ggplot2 in R studio and for easy readability, I replaced the y-axis labels(containing values in thousands) with the suffix 'K'.</p>
  <p>For e.g-if the y-axis label was '10000', I replaced it with '10K' and likewise.</p>
  <p>The code:-</p>
  <pre class="lang-r prettyprint-override"><code>full_data_cl %&gt;% 
    group_by(month, rider_type) %&gt;% 
    summarise(number_of_ride = n(), .groups = 'drop') %&gt;% 
    filter(rider_type == 'casual') %&gt;% 
    ggplot(aes(x = month, y = number_of_ride)) + 
      geom_bar(stat = 'identity', colour = &quot;black&quot;, fill = &quot;darkorange&quot;) + 
      labs(title=&quot;No.of Rides Per Month&quot;) + 
      theme(plot.title=element_text(hjust = 0.1, size = 40, vjust = -5)) + 
      theme(axis.text.x = element_text(face = &quot;bold&quot;, colour = &quot;black&quot;, size = 15)) +
      theme(axis.text.y = element_text(face = &quot;bold&quot;, colour = &quot;black&quot;, size = 15)) +
      theme(panel.background = element_blank(), 
            axis.line = element_line(colour = &quot;black&quot;), 
            axis.ticks.x = element_blank(), 
            axis.title = element_blank()) + 
      geom_text(aes(label = number_of_ride), size = 7, vjust = -1)
  </code></pre>
  <p><img src="https://i.stack.imgur.com/ZA4LZ.png" alt="Click here to view the original plot" /></p>
  <p>I included the following line in the code fiven above to make the necessary changes:-</p>
  <pre><code>scale_y_continuous(labels = label_number(suffix = &quot;K&quot;,scale = 1e-5))
  </code></pre>
  <p>The code generated the following visualization:-
  <img src="https://i.stack.imgur.com/59WBw.png" alt="Click here to view the modified plot" /></p>
  <p>As we can see the y-axis labels are reflecting the changes I made but the labels above the bars are still the same.</p>
  <p>Can someone guide me on how to fix this?</p>