Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.covfm

Plot Method


Description

Generic plot method for objects with classes “covfm”, “covRob”, and “covClassic”.

Usage

## S3 method for class 'covfm'
plot(x, which.plots = c(4, 3, 5), ...)
## S3 method for class 'covRob'
plot(x, which.plots = c(4, 3, 5), ...)
## S3 method for class 'covClassic'
plot(x, which.plots = c(4, 3, 5), ...)

Arguments

x

an oject of class "covClassic", "covRob", or "covfm".

which.plots

either "ask", "all", or an integer vector specifying which plots to draw. If which.plots is an integer vector, use the plot numbers given here (or in the "ask" menu). The plot options are (2) Eigenvalues of Covariance Estimate, (3) Sqrt of Mahalanobis Distances, (4) Ellipses Matrix, and (5) Distance - Distance Plot.

...

additional arguments are passed to the plot subfunctions.

Details

The actual plot functions are only implemented for "fit.models" objects. When this method is dispatched on an object of class "cov" or "covRob" the object is cast as a "fit.models" object containing a single element and plotted with plot.covfm. The actual plotting is done by the subfunctions listed in the See Also section.

Value

x is invisibly returned.

Side Effects

The requested plots are drawn on a graphics device.

See Also

Examples

data(woodmod.dat)

woodm.cov <- covClassic(woodmod.dat)
woodm.covRob <- covRob(woodmod.dat)

plot(woodm.cov)
plot(woodm.covRob)

woodm.fm <- fit.models(list(Robust = "covRob", Classical = "covClassic"),
                       data = woodmod.dat)
plot(woodm.fm)

robust

Port of the S+ "Robust Library"

v0.5-0.0
GPL-2
Authors
Jiahui Wang, Ruben Zamar <ruben@stat.ubc.ca>, Alfio Marazzi <Alfio.Marazzi@inst.hospvd.ch>, Victor Yohai <vyohai@dm.uba.ar>, Matias Salibian-Barrera <matias@stat.ubc.ca>, Ricardo Maronna <maron@mate.unlp.edu.ar>, Eric Zivot <ezivot@u.washington.edu>, David Rocke <dmrocke@ucdavis.edu>, Doug Martin, Martin Maechler <maechler@stat.math.ethz.ch>, Kjell Konis <kjell.konis@me.com>.
Initial release
2020-03-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.