/misc

Primary LanguageRGNU General Public License v3.0GPL-3.0

Description of files

plot_contour - given a normal mixture model and data, this function fits contours of the components. It uses functions from the ggplot2 package and the GGally package.

Fit a mixture model using EMMIX R package

library(EMMIX)
fit <- EMMIX(dat = iris[, -5], g = 3)

Display contours

plot_contour(fit, iris[, -5])

Contours using the fitted mixture model parameters.