| covfmDistance2Plot {robust} | R Documentation |
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.
covfmDistance2Plot(x, chisq.percent = 0.975, id.n = 3, ...)
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. |
... |
additional arguments are passed to the low-level plotting functions. |
This function is called by the generic function plot.covfm.
x is invisibly returned.
plot.covfm,
fit.models,
covRob,
ccov.
data(woodmod.dat)
woodmod.fm <- fit.models(list(Robust = "covRob", Classical = "ccov"),
data = woodmod.dat)
covfmDistance2Plot(woodmod.fm)