title: How to make an R barplot with a log y-axis scale?
body: <p>This should be a simple question... I'm just trying to make a barplot from a vector in R, but want the values to be shown on a log scale, with y-axis tick marks and labelling. I can make the normal barplot just fine, but when I try to use log or labelling, things go south.</p>
  
  <p>Here is my current code:</p>
  
  <pre><code>samples &lt;- c(10,2,5,1,2,2,10,20,150,23,250,2,1,500)
  barplot(samples)
  </code></pre>
  
  <p>Ok, this works. Then I try to use the <code>log=""</code> function defined in the barplot manual, and it never works. Here are some stupid attempts I have tried:</p>
  
  <pre><code>barplot(samples, log="yes")
  barplot(samples, log="TRUE")
  barplot(log=samples)
  </code></pre>
  
  <p>Can someone please help me out here? Also, the labelling would be great too. Thanks!</p>