# NOT RUN {
data(fat)
regr2.plot(fat[,"abdomin"], xlab="abdomin",
fat[,"biceps"], ylab="biceps",
fat[,"bodyfat"], zlab="bodyfat",
resid.plot="square",
eye=c(335.5, 115.65, 171.9), ## used only in S-Plus
theta=140, phi=35, r=sqrt(15), ## used only in R
box=is.R(),
plot.back.planes=FALSE,
main="Least-squares with two X-variables")
# }
# NOT RUN {
demo("regr2", package="HH", ask=FALSE)
## run the file manually to see the individual steps.
# }
Run the code above in your browser using DataLab