Learn R Programming

DAAG (version 1.13)

plotSimDiags: Return lattice graphics objects that show regression diagnostics for simulated data.

Description

Generic function for returning graphics objects that show regression diagnostics for simulated data. Currently the only plot method is plotSimDiags.lm that accepts lm objects and objects of a class that inherits from lm

Usage

plotSimDiags(obj, ...)

Arguments

obj
An object of class code{lm}, or of a class that inherits from lm
...
Other parameters that can be passed to the lattice function call(s). See plotSimDiags.lm

Value

  • A list of lattice graphics objects. Or if which is of length 1, a lattice graphics object. See the help page for plotSimDiags.lm

References

See the help page for plot.lm

See Also

plot.lm, plotSimDiags.lm

Examples

Run this code
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
htwt.lm <- lm(height ~ weight, data=women)
gphlist <- plotSimDiags(obj=htwt.lm, which=c(1:3,5))
## The function is currently defined as
function (obj, ...)
{
    UseMethod("plotSimDiags")
  }

Run the code above in your browser using DataLab