Usage
tolEllipsePlot(x, m.cov = covMcd(x), cutoff = NULL, id.n = NULL, classic = FALSE, tol = 1e-07, xlab = "", ylab = "", main = "Tolerance ellipse (97.5%)", txt.leg = c("robust", "classical"), col.leg = c("red", "blue"), lty.leg = c("solid","dashed"))
Arguments
x
a two dimensional matrix or data frame.
m.cov
an object similar to those of class "mcd"
; however
only its components center
and cov
will be used. If
missing, the MCD will be computed (via covMcd()
). cutoff
numeric distance needed to flag data points outside the
ellipse.
id.n
number of observations to be identified by a label. If
not supplied, the number of observations with distance larger than
cutoff
is used.
classic
whether to plot the classical distances as well,
FALSE
by default.
tol
tolerance to be used for computing the inverse, see
solve
. Defaults to 1e-7
. txt.leg, col.leg, lty.leg
character vectors of length 2 for the
legend, only used if classic = TRUE
.