title: Show element values in barplot
body: <p>I'm trying to put original counts into a barplot, but it's always messy:</p>
  
  <pre><code>set.seed(123)
  c&lt;-c(2, 3.5, 5, 7.9, 8.8, 12.3)
  x&lt;-sample(c, 100, replace=T)
  barplot(table(x))
  text(c, table(x)+2, labels=as.character(table(x)))
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/yVEvV.jpg" alt="enter image description here"></p>
  
  <p>Would somebody have some suggestions?</p>