Lab 24: K-Means Clustering

Note

In lab.qmd ## Lab 24 section,

  1. Install R package palmerpenguins at https://allisonhorst.github.io/palmerpenguins/

  2. Perform K-Means to with \(K = 3\) to cluster penguins based on bill_length_mm and flipper_length_mm of data peng.

library(palmerpenguins)
peng <- penguins[complete.cases(penguins), ] |> 
    select(flipper_length_mm, bill_length_mm)

Warning: Removed 2 rows containing missing values (`geom_point()`).