I have some continuous data:
- mean_force - 2700 values reflecting a change of my dependent varibale through 2700 ms
- sd_force - another 2700 values, a standard deviation of the dependent variable through time
I'm plotting mean_force on a graph, like here:
x=c(1:2700)
plot(x, mean_force, ty="l", col="blue", ylim=c(-15, 15),
ylab="force (mN)",
xlab='time (ms)',
lty=1,lwd=3)
The question is how can I plot SD as well, the way it was done on the picture below (shaded area around the mean)? Is there any simple way to do it in R?