title: Why does this ggplot only plot the grid without the values?
body: <p>I am trying to plot a bar chart in ggplot but I am continuously getting only the grid. This is apparently a demonstration about the <code>draw nothing</code> <a href="http://ggplot2.tidyverse.org/reference/geom_blank.html" rel="nofollow noreferrer">here</a> but I would like to understand how to get the values visible in the simplest way.</p>
  
  <p><a href="https://i.stack.imgur.com/NzxCS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NzxCS.png" alt="enter image description here"></a></p>
  
  <pre><code>   library(ggplot2)
      testData&lt;-data.frame(x=c("a","b","c","d","e","f"), y=c(10,6,9,28,10,17))
      bar &lt;- ggplot(data=testData, aes(x=c("a","b","c","d","e","f"), y=c(10,6,9,28,10,17), fill = "#FFCC00"))
  </code></pre>
  
  <p>One way I can get the plots is the <code>geom_bar</code></p>
  
  <p><a href="https://i.stack.imgur.com/4eAas.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4eAas.png" alt="enter image description here"></a></p>
  
  <pre><code>bar &lt;- ggplot(data=testData, aes(x=c("a","b","c","d","e","f"), y=c(10,6,9,28,10,17), fill = "#FFCC00")) + geom_bar(stat="identity")
  </code></pre>
  
  <p><strong>Why are the values not plotted on the first bar chart and how to fix it the simplest way? What is the idea behind of this way of plotting with <code>+</code> and what is it called?</strong></p>