Learn R Programming

robust (version 0.3-19)

covfmSqrtMDPlot: Side-by-Side (Square Root of) Mahalanobis Distances Plot

Description

Produces side-by-side plots of the square root of the Mahalanobis distances computed using the location and covariance matrix estimates contained in each model of a covfm object.

Usage

covfmSqrtMDPlot(x, chisq.percent = 0.975, id.n = 3, main, xlab, ylab, ...)

Arguments

x
an object of class "covfm" containing 2 elements, typically the result of fit.models(..).
chisq.percent
a numeric value between 0 and 1 giving the chi-squared percent point used to compute the outlyingness threshold.
id.n
a positive integer specifying the number of extreme points to label in the plot.
main
a character string specifying the plot title.
xlab
a character string specifying the x-axis label.
ylab
a character string specifying the y-axis label.
...
any additional arguments are passed to xyplot.

Value

  • the plotted trellis object is invisibly returned.

Details

This function is called by the generic function plot.covfm. To use this function on a "cov" or "covRob" object, first use fit.models to coerce the object to class "covfm".

See Also

plot.covfm, fit.models, covRob, ccov.

Examples

Run this code
data(woodmod.dat)
  woodm.fm <- fit.models(list(Robust = "covRob", Classical = "ccov"),
                         data = woodmod.dat)
  covfmSqrtMDPlot(woodm.fm)

Run the code above in your browser using DataLab