geo_trianglegrid | R Documentation |
Takes a bounding box and a cell depth and returns a set of Polygon's in a grid.
geo_trianglegrid(bbox, cell_size, units = "kilometers")
bbox |
extent in |
cell_size |
(numeric) the distance across each cell |
units |
(character) used in calculating cellSize, can be degrees, radians, miles, or kilometers (default) |
FeatureCollection<Polygon> grid of polygons
geo_trianglegrid(c(-77.3876, 38.7198, -76.9482, 39.0277), 3, "miles")
geo_trianglegrid(c(-77.3876, 38.7198, -76.9482, 39.0277), 10, "miles")
geo_trianglegrid(c(-77.3876, 38.7198, -76.9482, 39.0277), 30, "miles")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.