kidney <- read.table(hh("datasets/kidney.dat"), header=TRUE)
kidney2.lm <- lm(clearance ~ concent + age + weight + concent*age,
data=kidney, x=TRUE) ## the lm object must be computed with x=TRUE
kidney2.case <- lm.case(kidney2.lm)
## this picture looks much better in portrait, specification is device dependent
## trellis.device(postscript, horizontal=TRUE) ## postscript
## trellis.device(orientation="portrait") ## S-Plus graphsheet
plot.case(kidney2.case, kidney2.lm, par.strip.text=list(cex=.9),
layout=c(2,3))
.lm.case.large ## file placed by default into frame 0 in S-Plus
## and into globalenv() in R
Run the code above in your browser using DataLab