title: How to create a barplot in R with frequencies on the y-axis not the densities?
body: <p>I want a bar plot for the following data.</p>
  <pre><code>bloodgroup &lt;- c(&quot;O&quot;,    &quot;A&quot;,    &quot;A&quot;,    &quot;O&quot;,    &quot;O&quot;,
                  &quot;B&quot;,    &quot;B&quot;,    &quot;A&quot;,    &quot;A&quot;,    &quot;A&quot;,
                  &quot;A&quot;,    &quot;O&quot;,    &quot;O&quot;,    &quot;O&quot;,    &quot;B&quot;,
                  &quot;O&quot;,    &quot;O&quot;,    &quot;A&quot;,    &quot;O&quot;,    &quot;A&quot;,
                  &quot;A&quot;,    &quot;O&quot;,    &quot;AB&quot;,   &quot;B&quot;,    &quot;O&quot;,
                  &quot;AB&quot;,   &quot;B&quot;,    &quot;O&quot;,    &quot;A&quot;,    &quot;AB&quot;)
  </code></pre>
  <p>I have written the following code, but it only returns the densities. I want the frequencies on the y-axis with on each bar at the top the number of frequencies. Any idea how to this?</p>
  <pre><code> barplot(prop.table(table(bloodgroup)))
  </code></pre>