# lmplot

From HH v3.1-19
by Richard Heiberger

##### Four types of residual plots for linear models.

Four types of residual plots for linear models. The first three are redesigns of
plots that `stats:::plot.lm`

presents.
The first two show the positive residuals in `col[2]`

and the
negative residuals
in color `col[1]`

. The third and fourth use color `col[1]`

.
The fourth is based on an S-Plus
panel that R doesn't provide.

- Keywords
- dplot

##### Usage

```
lmplot(lm.object, ...,
col=trellis.par.get("superpose.symbol")$col[1:2])
```

##### Arguments

- lm.object
- Linear model object. See
`lm`

for details. - col
- Vector of color names. Only the first two are used.
If not specified, then
`trellis.par.get("superpose.symbol")$col[1:2]`

is used. - ...
- Other arguments, currently ignored.

##### Details

The trellis plots from the four functions `residVSfitted`

,
`scaleLocation`

, `diagQQ`

, `diagplot5new`

are displayed on the current device in a coordinated display.

##### Value

- A list of three trellis objects is returned invisibly, the first
contains the result of
`residVSfitted`

and`scaleLocation`

together. The second`diagQQ`

, and the third`diagplot5new`

.

##### Examples

```
tmp <- data.frame(y=rnorm(100), x1=rnorm(100), x2=rnorm(100))
tmp.lm <- lm(y ~ x1 + x2, data=tmp)
lmplot(tmp.lm)
```

*Documentation reproduced from package HH, version 3.1-19, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.