Description Usage Arguments Value Examples
Retrieve a list of boundaries with their spacial coordinates(lat/long and mercator) and a computed haversine distance in miles from the map center. Boundaries are defined in a shapefile dataframe(see method: shape_boundaries) as a list of vertices coordinates. The boundaries spacial coordinates is the center of gravity of its vertices.
1 | boundaries_coords.shape(shape_boundaries, map_center = NULL)
|
shape_boundaries |
List of vertices coordinates as dataframe. Each boundaries is defined as a set of vertices. The value is given using shape_boundaries method |
map_center |
Spacial coordinates of a map center. The haversine distance in miles is computed if map_center is defined. |
list of spacial coordinates(lat/long and mercator) and a distance as data.frame
1 2 3 | shape_boundaries<-shape_boundaries(shape_boundaries_dir, shape_boundaries_filename,boundary_identifier)
map_center = data.frame(long = c(-94.823686), lat = c(39.121296) )
boundaries_coords<-boundaries_coords.shape(shape_boundaries, map_center)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.