Ternary diagram with confidence region for the mean | R Documentation |
Ternary diagram with confidence region for the mean.
ternary.mcr(x, type = "alr", conf = 0.95, dg = FALSE, hg = FALSE, colour = NULL)
x |
A matrix with the compositional data. |
dg |
Do you want diagonal grid lines to appear? If yes, set this TRUE. |
type |
The type of log-ratio transformation to aply, the "alr" or the "ilr". |
conf |
The confidence level, by default this is set to 0.95. |
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 compositional data including the log-ratio mean and its confidence region.
The confidence region is based on the Hotelling T^2
test statistic of the log-ratio
transformed data.
A ternary plot of compositional data including the log-ratio mean and its confidence region.
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, diri.contour
x <- as.matrix(iris[, 1:3])
x <- x / rowSums(x)
ternary.mcr(x, type = "alr", dg = TRUE, hg = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.