Skip to contents

A plot of residuals against fitted values.

Usage

# S3 method for class 'lm'
plotjs(x, which = 1, ...)

Arguments

x

an "lm" object

which

1 is the only supported value currently. This argument is included for consistency with the base plot.lm() method.

...

arguments passed to other methods.

Examples

lm.SR <- lm(sr ~ pop15 + pop75 + dpi + ddpi, data = LifeCycleSavings)
plotjs(lm.SR)