Ternary diagram with confidence region for the mean {Compositional}R Documentation

Ternary diagram with confidence region for the mean

Description

Ternary diagram with confidence region for the mean.

Usage

ternary.mcr(x, type = "alr", conf = 0.95, dg = FALSE, hg = FALSE, colour = NULL)

Arguments

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.

Details

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.

Value

A ternary plot of compositional data including the log-ratio mean and its confidence region.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

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.

See Also

ternary, ternary.reg, diri.contour

Examples

x <- as.matrix(iris[, 1:3])
x <- x / rowSums(x)
ternary.mcr(x, type = "alr", dg = TRUE, hg = TRUE)

[Package Compositional version 6.9 Index]