View source: R/ternary_diagram.R
| ternary_frame | R Documentation |
Build a ternary plotting frame for compositional data with exactly three parts. The returned object stores the geometric and log-ratio transformation machinery needed to add multiple data layers consistently to the same ternary diagram.
ternary_frame(X, center = FALSE, scale = FALSE, labels = NULL)
X |
A numeric matrix or data frame with exactly three columns. This data defines the reference frame used for centering/scaling in log-ratio space. |
center |
Logical. If |
scale |
Logical or numeric. If |
labels |
Optional character vector of length 3 used as corner labels.
If |
An object of class "ternary_frame".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.