Description Usage Arguments Value Author(s) See Also Examples

View source: R/ternaryDiagEllipse.R

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

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

`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. |

no values are returned.

Peter Filzmoser, Matthias Templ

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.