title: How do I add SE error bars to my barplot in ggplot2?
body: <p>I made a simple barplot with ggplot2 comparing the mean lifespan (age) of males and females for 2 insect species. 
  My code looks like this, with "dataset" being, well, my data set...</p>
  
  <pre><code>    gplot(dataset, aes(Species, Age, fill=Sex))+
  stat_summary(fun.y = mean, geom = "bar", position = "dodge")+
  scale_fill_manual(values = c("Grey25", "Grey"))+
  theme(legend.title = element_blank())+
  scale_y_continuous(limits = c(0,15))
  </code></pre>
  
  <p>I tried using the following code to manually enter the value of the mean±SE to set the limits for the error bar. For the sake of simplicity, let's assume mean=10 and SE=0.5 for males of species1.</p>
  
  <pre><code>geom_errorbar(aes(ymin=9.5, ymax=10.5),width=.2,position=position_dodge(.9))
  </code></pre>
  
  <p>This code does indeed work, but it sets the same error bars for each bar in my plot.</p>
  
  <p>How can I add error bars equal to the corresponding SE for each bar in my plot?</p>
  
  <p>I am fairly new to ggplot and R in general so any help/advice is welcome. </p>