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.

Image 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 © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010