title: R barplot Y-axis scale too short
body: <p>I'm trying to generate a barplot, but the y-axis scale is too short. Here's my code:</p>
  
  <pre><code>barplot(as.matrix(dat), log="y", ylim=c(10000,100000000), beside=TRUE,
          ylab = "Number of reads", col = c("gray","black","white"))
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/TVe38.png" alt="short y axis"></p>
  
  <p>It leaves the room for the axis (as per ylim), but doesn't fill in the actual axis. I've been through <code>?barplot</code> and tried a few things (from googling around I thought <code>xpd = F, yaxs = c(10000,10000000,5)</code> should work, but it didn't).</p>
  
  <p>I know it's a minor thing, but it's exactly the kind of problem I get stuck on for ages, instead of actually working, so any help would be much appreciated!</p>
  
  <p>Edit:
  Cheers for the input guys!</p>
  
  <p>I did initially plot without ylim, but it ends up with an even more bizarre axis (with the same problem); I actually picked my ylim values to give it a nicer spaced axis.
  <img src="https://i.stack.imgur.com/zbN0Z.png" alt="original no ylim"></p>
  
  <p>Here's the data:</p>
  
  <pre><code>dat &lt;- read.table(text="D2,D3n,D3m,D4n,D4m
  21234722,34262282,31920464,25486357,20712943
  35343,64403,22537,39934,46547
  126646,312286,101105,81537,76944", header=TRUE, sep=",")
  </code></pre>
  
  <p>Edit 2: 
  @DWin had it right - I updated my R, and now it plots fine - thanks everyone!</p>