p<- ggplot(cherry, aes(x=Color, y=SSC, group=Row.size, color=Row.size)) +
geom_line() +
geom_point()+
geom_errorbar(aes(ymin=SSC-sd, ymax=SSC+sd), width=.2,
position=position_dodge(0.05))
p
Error in SSC - sd : non-numeric argument to binary operator
Hello, I am trying to make a ggplot graph but I am getting this error. I researched but unfortunately I could not find any information. Please help me. Thank you!!
sd
is not a variable in your dataset. If you want sd to be the standard deviation of variable SSC trygeom_errorbar(aes(ymin=SSC-sd(SSC), ymax=SSC+sd(SSC)), width=.2, position=position_dodge(0.05))
. – stefan