Description Usage Arguments Value Examples
Input a distance matrix, upon which clustering will be performed and projected unto a map.
1 | cluster_map(dist_mat, kml_points, kml_polygon, cluster_num, method)
|
dist_mat |
A distance matrix. |
kml_points |
A dataframe of kml (Keyhole Markup Language) points, as retrieved by |
kml_polygon |
A dataframe of kml polygons, as retrieved by |
cluster_num |
Number of clusters. |
method |
The agglomeration method that is passed to |
A map upon which dialect areas are clustered.
1 2 3 4 5 | # Example 1: A cluster map of Dutch dialects
data(distDutch)
dutch_points <- get_points(system.file("extdata", "DutchKML.kml", package="dialectR"))
dutch_polygons <- get_polygons(system.file("extdata", "DutchKML.kml", package="dialectR"))
cluster_map(distDutch[1:100,1:100], dutch_points, dutch_polygons, 5, "ward.D2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.