Ternary diagram with the coefficients of the simplicial-simplicial regression models | R Documentation |
Ternary diagram with the coefficients of the simplicial-simplicial regression models.
ternary.coef(B, dg = FALSE, hg = FALSE, colour = NULL)
B |
A matrix with the coefficients of the |
dg |
Do you want diagonal grid lines to appear? If yes, set this TRUE. |
hg |
Do you want horizontal grid lines to appear? If yes, set this TRUE. |
colour |
If you want the points to appear in different colour put a vector with the colour numbers or colours. |
Ternary plot of the coefficients of the tflr
or
the scls
functions.
A ternary plot of the coefficients of the tflr
or the scls
functions.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Aitchison, J. (1983). Principal component analysis of compositional data. Biometrika 70(1):57-65.
Aitchison J. (1986). The statistical analysis of compositional data. Chapman & Hall.
ternary, ternary.reg, scls
y <- as.matrix(iris[, 1:3])
y <- y / rowSums(y)
x <- rdiri(150, runif(5, 1,4) )
mod <- scls(y, x)
ternary.coef(mod$be)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.