plotLm: Plot diagnostics of a linear model fit.

plotLmR Documentation

Plot diagnostics of a linear model fit.

Description

plotLm creates a 2x2 plot holding the 4 diagnoostic plots of a linear model. It is simply a shortcut for diving the current plot into 2x2 subplots and plotting the 4 plots.

Usage

plotLm(m)

Arguments

m

an object of class 'lm'

Author(s)

Tomas Sieger

Examples

set.seed(1)
x<-rnorm(10)
d<-data.frame(x=x,y=2*x+rnorm(10))
m<-lm(y~x,d)

plotLm(m)

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.