Description Usage Arguments Details References Examples

Generates a plot of data densities with overlaid mixture components from a Gaussian mixture model (GMM)

1 |

`m` |
An object of class |

`k` |
The number of components specified in the GMM, |

Uses ggplot2 graphics to plot data densities with overlaid components from `mixEM`

objects, which are GMM's fit using the `mixtools`

package.

Note: Users must enter the same component value, `k`

, in the `plot_GMM`

function, as that which was specified in the original GMM specification (also `k`

in `mixtools`

).

Benaglia, T., Chauveau, D., Hunter, D. and Young, D., 2009. mixtools: An R package for analyzing finite mixture models. Journal of Statistical Software, 32(6), pp.1-29.

Wickham, H., 2016. ggplot2: elegant graphics for data analysis. Springer.

1 2 3 4 |

```
*Attention*: `plotGMM` is no longer actively developed. Instead, use the expanded package, `plotmm`. Thanks!
number of iterations= 30
```

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.