I want to plot each mean of the factor(MAP) on each Size(x-axis), can anybody help me?
qplot(Size,Rc,data=rc.data, geom="boxplot") +
geom_point(aes(color=factor(MAP)))
I want to plot each mean of the factor(MAP) on each Size(x-axis), can anybody help me?
qplot(Size,Rc,data=rc.data, geom="boxplot") +
geom_point(aes(color=factor(MAP)))
Use stat_summary
to calculate and plot the means:
qplot(Size,Rc,data=rc.data, geom="boxplot") +
geom_point(aes(color=factor(MAP))) +
stat_summary(fun.y=mean, geom="line", aes(colour=factor(MAP), group=factor(MAP))) +
stat_summary(fun.y=mean, geom="point", aes(colour=factor(MAP), pch=3, size=3)