title: Histogram with ggplot2 requires a continuous x variable
body: <p>I have a dataset in a table format that looks like this:</p>
  
  <pre><code>            test frequency
  1         test40         3
  2         test33         5
  3         test19         2
  4       test4521         1
  5         test34         1
  6         test27         3
  7         test42         3
  8         test35         1
  ....
  </code></pre>
  
  <p>If I use this command:</p>
  
  <pre><code>library(ggplot2)
  
  ggplot(t, aes("frequency")) +
    geom_histogram()
  </code></pre>
  
  <p>("t" is the name of my table)</p>
  
  <p>Then RStudio says: "StatBin requires a continuous x variable: the x variable is discrete. Perhaps you want stat="count"?"</p>
  
  <p>I just want to see how many times a 3 or a 5 etc. occurs.</p>
  
  <p>Thanks for your help.</p>