title: How do you use hist to plot relative frequencies in R?
body: <p>How do you use hist() to plot relative frequencies in R?</p>
  
  <p>If I do the following, I will get a density plot, but I want a relative frequency plot:</p>
  
  <pre><code>a &lt;- c(0,0,0,1,1,2)
  hist(a, freq=FALSE)
  </code></pre>
  
  <p>I want to see a histogram with the following relative frequencies:</p>
  
  <p>.5 for 0 to 1, </p>
  
  <p>.33 for 1 to 2, </p>
  
  <p>and .166 for 2 to 3.</p>