title: How to plot histogram/ frequency-count of a vector with ggplot?
body: <p>I want to plot with <strong>ggplot</strong> the frequency of values from a numeric vector. With <code>plot()</code> is quite straight forward but I can't get the same result with <strong>ggplot</strong>.</p>
  
  <pre><code>library(ggplot2)    
  dice_results &lt;- c(1,3,2,4,5,6,5,3,2,1,6,2,6,5,6,4)    
  hist(dice_results)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/469pA.png" alt="enter image description here"></p>
  
  <pre><code>ggplot(dice_results) + geom_bar()
  # Error: ggplot2 doesn't know how to deal with data of class numeric
  </code></pre>
  
  <p>Should I create a dataframe for <code>ggplot()</code> to plot my vector?</p>