Description Usage Arguments Value Author(s) Examples
Map clusters from cluster analysis
1 | map_cluster(clusters, locations, bounding_box, zoom, title)
|
clusters |
cluster output from cluster analysis |
locations |
data frame of lats and longs for locations (columns Location, Latitude, Longitude) |
bounding_box |
(long and lat of bottom left, long and lat of top right) |
zoom |
for stamen map (defaults to 5) |
map of locations coloured by cluster
Ken Butler, butler@utsc.utoronto.ca
1 2 | map_cluster(ward(nine_points, T, 3)$clusters, nine_points_locations, bounding_box=c(-87.5, 71, -82.5, 74), zoom=6, title="Cluster map (Ward's method)")
map_cluster(k_means(nine_points, 4)$clusters, nine_points_locations, bounding_box=c(-87.5, 71, -82.5, 74), zoom=6, title="Cluster map (K-means method)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.