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

View source: R/mixnorm.contour.R

Contour plot of a Gaussian mixture model in *S^2*.

1 | ```
mixnorm.contour(x, mod)
``` |

`x` |
A matrix with the compositional data. |

`mod` |
An object containing the output of a |

The contour plot of a Gaussian mixture model is plotted. For this you need the data and the fitted model.

A ternary plot with the data and the contour lines of the fitted Gaussian mixture model.

Michail Tsagris

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

Ryan P. Browne, Aisha ElSherbiny and Paul D. McNicholas (2015). R package mixture: Mixture Models for Clustering and Classification

Aitchison J. (1986). The statistical analysis of compositional data. Chapman \& Hall.

```
mix.compnorm, bic.mixcompnorm, diri.contour
```

1 2 3 4 | ```
x <- as.matrix(iris[, 1:3])
x <- x / rowSums(x)
mod <- mix.compnorm(x, 3, model = "EII")
mixnorm.contour(x, mod)
``` |

```
```

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.