Displaying 1 result from an estimated 1 matches for "geom_errorbarr".
Did you mean:
geom_errorbar
2010 Mar 12
1
simple plot in ggplot2, wrong error bars
...dge <- position_dodge(width=0.9)
> p + geom_bar(position="dodge") + geom_errorbar(limits, position="dodge",
> width=0.5)
as you noticed the code above gets the error bars in the wrong columns.
So I used the code below (I replaced position_dodge w/ a negative value and
geom_errorbarr with dodge no quote marks)
df <- data.frame(trt = factor(c("intact", "intact", "removed", "removed")),
coon = c(0.093, 0.06, 0.057, 0.09), group = factor(c("veget", "fruit",
"veget", "fruit")), se = c(0.01, 0.01, 0....