How to do it...

Perform the following steps to perform model-based clustering:

  1. First, install and load the following package:
  1. Then, perform model-based clustering on the multishapes dataset:
> mm = Mclust(dataPoints)
  1. Now plot the result and press 1 to obtain the BIC against a number of components:
> plot(mm)
  1. Next, press 2 to show the classification with respect to different combinations of features:
  1. Then, press 3 to show the classification uncertainty with respect to different feature combinations: ...

Get R Data Analysis Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.