For each X-value I calculated the average Y-value and the standard deviation (sd) of each Y-value
X
Y
sd
x = 1:5 y = c(1.1,
You can use arrows:
arrows
arrows(x,y-sd,x,y+sd, code=3, length=0.02, angle = 90)