title: Annotation above bars:
body: <p>dodged bar plot in ggplot again has me stumped.  I asked about annotating text above bars on here a few weeks back (<a href="https://stackoverflow.com/questions/9815226/annotate-values-above-bars-ggplot-faceted">LINK</a>) and got a terrific response to use <code>+ stat_bin(geom="text", aes(label=..count.., vjust=-1))</code>.  I figured since I already have the counts I'll just supply them with out the <code>..</code> before and after and I told <code>stat_bin</code> that the <code>position</code> was <code>dodge</code>.  It lines them up over the center of the group and adjusts up and down.  Probably something minor.  Please help me to get the text over the bars.</p>
  
  <p><img src="https://i.stack.imgur.com/kgYmF.png" alt="enter image description here"></p>
  
  <pre><code>mtcars2 &lt;- data.frame(type=factor(mtcars$cyl), 
      group=factor(mtcars$gear))
  library(plyr); library(ggplot)
  dat &lt;- rbind(ddply(mtcars2,.(type,group), summarise,
      count = length(group)),c(8,4,NA))
  
  p2 &lt;- ggplot(dat,aes(x = type,y = count,fill = group)) + 
      geom_bar(colour = "black",position = "dodge",stat = "identity") +
      stat_bin(geom="text", aes(position='dodge', label=count, vjust=-.6)) 
  </code></pre>