The Ontario hockey divisions (the last example for cluster analysis) came with a very bad map. Can we do better?
Untangle the lats and longs:
ontario3
The same idea gets a map of the original seven clusters:
pal <- colorFactor("Set1", divisions$cluster)
ontario3 %>% left_join(divisions) %>%
select(place, x, y, cluster) %>%
leaflet() %>%
addTiles() %>%
addCircleMarkers(lng = ~x, lat = ~y,
color = ~pal(cluster))