Learn R Programming

robust (version 0.3-0)

covfmDistance2Plot: Distance - Distance Plot

Description

Given a fit.models object containing two elements of either class "cov" or "covRob", plots the square root of the Mahalanobis distances from the first element on the y-axis and the square root of the Mahalanobis distances from the second element on the x-axis. A 45 degree line is drawn as well.

Usage

covfmDistance2Plot(x, chisq.percent = 0.975, id.n = 3, ...)

Arguments

x
an object of class "covfm" containing 2 elements.
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.
...
additional arguments are passed to the low-level plotting functions.

Value

  • x is invisibly returned.

Details

This function is called by the generic function plot.covfm.

See Also

plot.covfm, fit.models, covRob, cov.

Examples

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

Run the code above in your browser using DataLab