inst/snippet/concrete-plot1.R

plot1 <- xplot(concrete.lm0,which=2)
plot2 <- xplot(concrete.lm0,which=3)
plot3 <- xplot(concrete.lm0,which=5,add.smooth=FALSE)
plot4 <- xyplot(resid(concrete.lm1) ~ fitted(concrete.lm1),
               main = "residuals vs fits",
               ylab = "residuals",
               xlab = "fitted values",
               sub  = "lm(strength ~ limestone + water)" )

Try the fastR package in your browser

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

fastR documentation built on May 2, 2019, 5:53 p.m.