Description Usage Arguments Value Examples
Retrieve a list of mercator boundaries with their spacial coordinates(lat/long and mercator) and a computed haversine distance in miles from the map center.
1 | boundaries_coords.df(data, map_center = NULL)
|
data |
List of Longitude/latitude coordinates of the boundaries. The Dataset is a data.frame containing a set of three columns (id, long, lat). 'id' is a unique representation of the boundary(ex: ZCTA, FSA). 'id' type is character. |
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 | data = data.frame(long = c(-94.823686, -94), lat = c(39.121296, 39) )
map_center = data.frame(long = c(-94.823686), lat = c(39.121296) )
boundaries_coords<-boundaries_coords.df(data, map_center)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.