Hi,
if I add the fill property, it only displays some of the shapes of stat_summary. No idea why.
this works
boxp <- ggplot(mtcars, aes(gear, disp, fill=vs)) +
geom_boxplot(outlier.color = NA, width=0.2) +
stat_summary(fun.y=mean, geom="point", shape=23, size=2, colour = "black", position = position_dodge(0.2),) +
labs(x = "Questions", y="Values", title = "Question subgroup", colour = "Conditions")
boxp
this doesn't work:
boxp <- ggplot(mtcars, aes(gear, disp, fill=vs)) +
geom_boxplot(outlier.color = NA, width=0.2) +
stat_summary(fun.y=mean, geom="point", shape=23, size=2, colour ="black", fill="white", position = position_dodge(0.2),) +
labs(x = "Questions", y="Values", title = "Question subgroup", colour = "Conditions")
boxp
thanks!
ps: it's not clear from the post editor, how to format code??