Diagnostic Plots for an "mcd" Object

DESCRIPTION:

Creates plots for visualizing outliers detected by cov.mcd .

USAGE:

plot.mcd(mcd.obj, ask=F, id.n=3, ...) 

REQUIRED ARGUMENTS:

mcd.obj
an mcd object.

OPTIONAL ARGUMENTS:

ask
if TRUE, plot.mcd operates in interactive mode.
id.n
number of points (must be less than the number of observations) to be highlighted in the appropriate plots. These will be the id.n most extreme points. Set to FALSE if no points are to be highlighted. Default: 3.

SIDE EFFECTS:

An appropriate plot is produced to display outliers. These can be one or all of the following choices:

Index plot of Robust Distances

Index plot of Mahalanobis Distances
Robust Distances versus Mahalanobis Distances
97.5% MCD Tolerance Ellipse (if bivariate dataset)

Each of these plots can be adorned with labels for the id.n most extreme points, depending on the options chosen.

DETAILS:

This function is a method for the generic function for class mcd. It can be invoked by calling for an object x of the appropriate class, or directly by calling regardless of the class of the object.

When ask=T, rather than producing each plot sequentially, plot.mcd displays a menu listing all the plots that can be produced. If the menu is not desired but a pause between plots is still wanted one must set par(ask=T) before invoking the plot command.

SEE ALSO:

, , .

EXAMPLES:

mcd.obj <- cov.mcd(air)
plot(mcd.obj, id.n=10) 
plot(mcd.obj, ask=T)  # interactive version. 
oldpar <- par(ask=T)
plot(mcd.obj)
par(oldpar)  # restore ask par