# NOT RUN {
data(fat)
fat.lm <- lm(bodyfat ~ abdomin, data=fat)
AA <- regrresidplot(fat$abdomin, fat$bodyfat, xlim=c(70,185), ylim=c(0,50))
BB <- regrresidplot(fat$abdomin, fat$bodyfat, xlim=c(70,185), ylim=c(0,50),
resid.plot="line")
CC <- regrresidplot(fat$abdomin, fat$bodyfat, xlim=c(70,185), ylim=c(0,50),
resid.plot="square")
update(between=list(y=1),
c("Residuals Not Displayed"=AA,
"Residual Lines"=BB,
"Residual Squares"=CC, layout=c(1,3)))
# }
Run the code above in your browser using DataLab