title: ggplot2: issue with y-axis scaling in bar chart
body: <p>I wanne create a bar chart using the following code:</p>
  <pre><code>ggplot(data_set, aes(x=reorder(regionname, +gdpcap), y=gdpcap)) +
    geom_bar(stat=&quot;identity&quot;)
  </code></pre>
  <p>As seen in the code, the y-axis doesn't simply display the count but the mean of the variable 'gdpcap' for each category on the x-axis.</p>
  <p>In the dataset, the values for the variable 'gdpcap' are continuous and only range from 1 to 10.
  But in the graphic output of my code, the values on the y-axis are multiplied by ten and display '0', '20', '40', '60' instead of just '0, 2, 4, 6'. It can be seen in the attached picture:
  <a href="https://i.stack.imgur.com/1LI98.png" rel="nofollow noreferrer">bar chart</a></p>
  <p>Why is ggplot scaling my y-axis differently?
  If I would just calculate the mean, using the following code...</p>
  <pre><code>mean(data_set$gdpcap)
  </code></pre>
  <p>...then the output would be 3.681204 and not 30.681204.
  So something in the ggplot command is causing the issue I assume. Any ideas?</p>
  <p>Thanks for any help!</p>
  <p>Thomas</p>