DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
Residuals Plot |
A plot of an lm (linear model) object. This provides a clear picture of any strange behaviour from the residuals.
pdf("graphics/rplot-lm-residuals.pdf") x <- runif(100, -3, 3) y <- 1 + 2*x + rnorm(100) m <- lm(y~x) par(mfrow=c(2,2)) plot(m) dev.off() |