title: How to put labels over geom_bar in R with ggplot2
body: <p>I'd like to have some labels stacked on top of a <code>geom_bar</code> graph. Here's an example:</p>
  
  <pre><code>df &lt;- data.frame(x=factor(c(TRUE,TRUE,TRUE,TRUE,TRUE,FALSE,FALSE,FALSE)))
  ggplot(df) + geom_bar(aes(x,fill=x)) + opts(axis.text.x=theme_blank(),axis.ticks=theme_blank(),axis.title.x=theme_blank(),legend.title=theme_blank(),axis.title.y=theme_blank())
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/GjmF8.png" alt=""></p>
  
  <p>Now </p>
  
  <blockquote>
    <p>table(df$x)</p>
  </blockquote>
  
  <pre><code>FALSE  TRUE 
      3     5 
  </code></pre>
  
  <p>I'd like to have the 3 and 5 on top of the two bars. Even better if I could have the percent values as well. E.g. <code>3 (37.5%)</code> and <code>5 (62.5%)</code>. Like so:
  <a href="https://i.stack.imgur.com/9GNEa.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9GNEa.png" alt=""></a><br>
  <sub>(source: <a href="https://img.skitch.com/20110623-xhbdwqj9bicqsf8nurg9dkuqsi.png" rel="noreferrer">skitch.com</a>)</sub>  </p>
  
  <p>Is this possible? If so, how?</p>