Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Residuals Plot

A plot of an lm (linear model) object. This provides a clear picture of any strange behaviour from the residuals.

[width=0.9]rplot-lm-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()

http://rattle.togaware.com/code/rplot-lm-residuals.R



Copyright © 2004-2006 Graham.Williams@togaware.com
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.