Using R to add confidence and prediction intervals
I'm using R to analyse a data set. I have found confidence intervals and prediction intervals for my data. However i'm having trouble adding the confience intervals and prediction intervals to my scatter graph.
plot(x,y,pch=16,xlab="Temp",ylab="Sugar",main="Sug ar remaining after fermentation")
The last two lines show my attempt at adding the confidence and prediction intervals. These commands arn't working, my graph stays the same. I'd appreciate any help. Thanks.