title: R histogram from frequency table
body: <p>So I've figured out how to drill my data down to a frequency table -</p>
  <pre><code>        Overall.Cond Freq
  235            1    0
  236            2    0
  237            3    1
  238            4    1
  239            5    9
  240            6    1
  241            7    1
  242            8    1
  243            9    1
  </code></pre>
  <p>I want to plot a histogram from this, but when I do hist(dataFrameName) I get this error</p>
  <pre><code>Error in hist.default(veenker) : 'x' must be numeric
  </code></pre>
  <p>Why is that happening and how do I get around it?</p>
  <p>EDIT: For those suggesting <code>barplot</code> as a solution (which is not the question), please consider this example of why <code>barplot</code> would not be a good solution.</p>
  <p>This sample data</p>
  <pre><code>dt = data.frame(vals = c(1.1, 1.2, 1.3, 2.0, 3.4, 26, 35, 45),
                  freq = c(  2,   3,   4,   3,   2, 15, 17, 14)) 
  </code></pre>
  <p>Using <code>barplot(dt$freq, names.arg = dt$vals)</code> would produce this very misleading barplot:
  <a href="https://i.stack.imgur.com/08qFK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/08qFK.png" alt="enter image description here" /></a></p>
  <p>However, converting the data to a vector format would make much more sense using this code <code>hist(as.vector(rep(dt$val, dt$freq)))</code>:
  <a href="https://i.stack.imgur.com/ujJo9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ujJo9.png" alt="enter image description here" /></a></p>