R/plots.R

plot.lm.Rd

Produce standard diagnostic plots for linear models using ggplot2.

# S3 method for lm plot(x, ...)

A linear model object produced by lm().

lm()

Extra arguments, currently ignored.

n <- 100 x1 <- rnorm(n) y1 <- rnorm(n) linmod <- lm(y1 ~ x1) plot(linmod)#