map_cluster: Map clusters from cluster analysis

Description Usage Arguments Value Author(s) Examples

View source: R/cluster.R

Description

Map clusters from cluster analysis

Usage

1
map_cluster(clusters, locations, bounding_box, zoom, title)

Arguments

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)

Value

map of locations coloured by cluster

Author(s)

Ken Butler, butler@utsc.utoronto.ca

Examples

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)")

nxskok/seaiceR documentation built on Nov. 4, 2019, 10:12 p.m.