Residual plot in R

 lm_Model = lm(y ~ x, data=df) 
 Model.res = resid(lm_Model)
 
 plot(df$x, Model.res, ylab="Residuals", xlab="DC Power (W)")+ 
 abline(0, 0)
Content Protection by DMCA.com
Please Share