📜  残差图 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:52:01.062000             🧑  作者: Mango

代码示例1
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)