Lab 7 - clustering

We will be using the palmerpenguins data set for this lab.

You will also be needing to load the broom package

  1. Transform the data set into a matrix using two of the numeric variables
  2. Perform k-means using 3 clusters
  3. Look at the result object with summary(), names(), and str().
  4. Use augment(), glance() and tidy() to extract information from the model
  5. Plot the clusters with your package of choice
  6. Rerun The previous steps with more variables and different values of \(K\)
  7. Construct an Elbow Chart to find an appropriate number of clusters for the data set