ternaryDiagEllipse: Adds tolerance ellipses to a ternary diagram.

View source: R/ternaryDiagEllipse.R

ternaryDiagEllipseR Documentation

Adds tolerance ellipses to a ternary diagram.

Description

Low-level plot function which add tolerance ellipses to a high-level plot of a ternary diagram.

Usage

ternaryDiagEllipse(x, tolerance = c(0.9, 0.95, 0.975), locscatt = "MCD", ...)

Arguments

x

Three-part composition. Object of class “matrix” or “data.frame”.

tolerance

Determines the amount of observations with Mahalanobis distance larger than the drawn ellipse, scaled to one.

locscatt

Method for estimating the mean and covariance.

...

Additional arguments passed trough.

Value

no values are returned.

Author(s)

Peter Filzmoser, Matthias Templ

See Also

ternaryDiag

Examples


data(coffee)
x <- coffee[,2:4]
ternaryDiag(x, grid=FALSE)
ternaryDiagEllipse(x)
## or directly:
ternaryDiag(x, grid=FALSE, line="ellipse")


robCompositions documentation built on Aug. 25, 2023, 5:13 p.m.