Im trying to figure out the best way to plot changes in water potential through summer comparing two factors, soil cover treatments and irrigation. I reached a fair result but im having troubles that the geom_points doesn't follow the position_dodge
as the error bar.
Example:Best Try
Stats <- summarySE(Maiten, measurevar= "Potencial", groupvars=c("Fecha","Riego","Tratamiento"),na.rm=TRUE)
ggplot(Stats, aes(x=Fecha, y=Potencial, group=Riego, colour=Riego,shape=Tratamiento))+
geom_errorbar(aes(x=Fecha, ymax=Potencial+se, ymin=Potencial-se),position="dodge")+
geom_point(position="dodge",size=3)+theme_classic()
Though this code give me this warning "Warning message:
Width not defined. Set with position_dodge(width = ?)
" if i alter the width neither the error bars or points dodge.
Example: modifiying position_dodge(width =0.9)
Any help or guidance would be appreciated!