Hi, I'd like to:
- have one boxplot for each bar, with the mean (white square)
- stick the mean texts to the bottom
This is the reproducible of what I have so far. See the attached image with what this code does (top) and what I'd like to have instead (bottom). I don't need to have different colours for each group as in the bottom image.
boxp <- ggplot(mtcars, aes(as.factor(cyl), wt, fill=as.factor(am)) ) + geom_bar(position = "dodge", stat = "summary", fun.y = "mean") + geom_boxplot(outlier.shape = NA, width=0.1, color = "#8f8a86",fill="#8f8a86") + stat_summary(aes(label=round(..y..,2)), fun.y=mean, geom="text", size=8, color = "white", vjust=8, position = position_dodge(0.9)) + stat_summary(fun.y=mean, geom="point", shape=23, size=4, fill = "white") + labs(x = "Conditions", y = "Means") + scale_y_continuous(limits=c(0,7),oob = rescale_none) + theme_bw() boxp