I have the following data frame:
test2
and I am plotting the bar graphs for each label per group using:
ggplot(test2, aes(label, X2, fill=as.factor(groups))) + geom_bar(position="dodge", stat="identity")
However, I am cannot seem to be able to find a stat="mean"
so I can plot the means on each bar graph instead of the identity.
Thanks for any help.