I would like to make a plot in R plotting two categorical variables (treat) by LWP.
I would like to change the color of the dots (the fill) to correspond with the variable rootpatH (one dot in each treatment).
I would also like to add a notation if the differences are significant or not..
Plants.means<-aggregate(Plants[10:44],Plants[c(6,9)],mean,na.rm=TRUE)
SE<-function(x)(sd(x,na.rm=TRUE)/ (length(x)-sum(is.na(x)))^0.5)
ggplot(Plants.means, aes(x=Treat, y=Yield, group=1)) +
geom_errorbar(width=.1, aes(ymin=Yield-SE(Plants.means$Yield), ymax=Yield+SE(Plants.means$Yield))) +
geom_point(shape=21, size=3, fill="white") +
ylim(0,1750)
I also want to change the error bars to represent 95% CI instead of SE.
Treat is categorical rootpatH is categorical LWP_meas2 is continuous