par(mfrow=c(1,2))
plot(hp ~ wt, mtcars)
AddLm(hp ~ wt, mtcars, col="steelblue")
# add the prediction intervals in different color
plot(hp ~ wt, mtcars)
AddLm(hp ~ wt, mtcars, col="red", pred.level=0.95, args.pband=list(col=SetAlpha("grey",0.3)) )
Run the code above in your browser using DataLab