Description Usage Arguments Details Value Author(s) References See Also Examples

Contour plot of a Dirichlet distribution in *S^2*.

1 | ```
diri.contour(a, n = 100, x = NULL)
``` |

`a` |
A vector with three elements corresponding to the 3 (estimated) parameters. |

`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. |

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.

A ternary diagram with the points and the Dirichlet contour lines.

Michail Tsagris

R implementation and documentation: Michail Tsagris <[email protected]> and Giorgos Athineou <[email protected]>

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.

```
norm.contour, bivt.contour, comp.kerncontour, mixnorm.contour
```

1 2 3 | ```
x <- as.matrix( iris[, 1:3] )
x <- x / rowSums(x)
diri.contour( a = c(3, 4, 2) )
``` |

```
```

Compositional documentation built on Jan. 13, 2019, 5:04 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.