panel.addons: Add Extras to fit.models Plots
Description
This is a utility function used by some of the plotting functions in the Robust Library. It optionally adds a smooth fit using loess, a rugplot, and/or identifies a specified number of extreme observations.Usage
panel.addons(x, y, smooths = FALSE, rugplot = FALSE, id.n = 3, ...)
Arguments
x
a numeric vector of x-coordinates.
y
a numeric vector of y-coordinates. Must be the same length as x
.
smooths
a logical value. If TRUE
then a smooth fit computed by loess is included in each panel.
rugplot
a logical value. If TRUE
then a rugplot is included in each panel.
id.n
a non-negative integer value specifying the number of extreme points to label in each panel.
...
additional arguments are passed to the low-level plotting functions.
Value
- a
NULL
value is invisibly returned.