plot_gmm: Plots Mixture Components from Gaussian Mixture Models
Description
Generates a plot of data densities with overlaid mixture components from a Gaussian mixture model (GMM)
Usage
plot_gmm(m, k = NULL)
Arguments
m
An object of class mixEM corresponding with the fit GMM
k
The number of components specified in the GMM, m
Details
Original function from the plotGMM package. Retained here for bridging between the packages. We recommend using instead the updated plot_mm function.
Note: plot_gmm requires a mixtools object to be supplied. 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).
References
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.