diri.contour: Contour plot of a Dirichlet distribution in $S^2$
Description
Contour plot of a Dirichlet distribution in $S^2$.
Usage
diri.contour(a, n = 100, x = NULL)
Arguments
a
A matrix with the compositional data. It has to be a 3 column matrix.
n
The number of grid points to consider over which the density is calculated.
x
This is either NULL (no data) or contains a 3 column matrix with compositional data.
Value
A ternary diagram with the points and the Dirichlet contour lines.
Details
The user can plot only the contour lines of a Dirichlet with a given vector of parameters, or can also add the relevant data should he/she wish to.
References
Ng Kai Wang, Guo-Liang Tian and Man-Lai Tang (2011). Dirichlet and related distributions: Theory, methods and applications. John Wiley & Sons.
Aitchison J. (1986). The statistical analysis of compositional data. Chapman & Hall.