clusterfly (version 0.4)

mefly: Display model based clustering with mvn ellipses. Displays the results of model based clustering with an ellipse drawn from the multivariate normal model for each group.

Description

Display model based clustering with mvn ellipses. Displays the results of model based clustering with an ellipse drawn from the multivariate normal model for each group.

Usage

mefly(model, data)

Arguments

model
output from me function
data
input data frame to me

Examples

Run this code
if(require("mclust")) {
eei <- me(modelName = "EEI", data = iris[,-5], z = unmap(iris[,5]))
vvv <- me(modelName = "VVV", data = iris[,-5], z = unmap(iris[,5]))
vvi <- me(modelName = "VVI", data = iris[,-5], z = unmap(iris[,5]))
mefly(eei, iris[,-5])
mefly(vvi, iris[,-5])
mefly(vvv, iris[,-5])
}

Run the code above in your browser using DataCamp Workspace