rfs: Residual and Fit Spread Plots

Description Usage Arguments Value Author(s) See Also Examples

View source: R/rfs.R

Description

Plots fitted values and residuals (via qqmath) on a common scale for any object that has methods for fitted values and residuals.

Usage

1
2
3
rfs(model, layout=c(2, 1), xlab="f-value", ylab=NULL,
    distribution = qunif,
    panel, prepanel, strip, ...)

Arguments

model

a fitted model object with methods fitted.values and residuals. Can be the value returned by oneway

layout

default layout is c(2,1)

xlab

defaults to "f.value"

distribution

the distribution function to be used for qqmath

ylab, panel, prepanel, strip

See xyplot

...

other arguments, passed on to qqmath.

Value

An object of class "trellis". The update method can be used to update components of the object and the print method (usually called by default) will plot it on an appropriate plotting device.

Author(s)

Deepayan Sarkar Deepayan.Sarkar@R-project.org

See Also

oneway, qqmath, xyplot, Lattice

Examples

1
rfs(oneway(height ~ voice.part, data = singer, spread = 1), aspect = 1)

Example output



lattice documentation built on May 2, 2019, 6:15 p.m.

Related to rfs in lattice...