R/plot.mra.R

plot.mra <- function(x, ...){

  resid <- resid(x)
  fitted <- fitted(x)

  plot(fitted, resid, type = 'p',
       xlab = 'Fitted values', ylab = 'Residuals',
       main = 'Residuals vs Fitted')
  abline(h = 0, lty = 'dotted', col = 'grey')
  lines(lowess(fitted, resid), col = 'red')

}

Try the iva package in your browser

Any scripts or data that you put into this service are public.

iva documentation built on May 2, 2019, 3:25 a.m.