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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.