View source: R/triangle_grid.R
| lawn_triangle_grid | R Documentation |
Takes a bounding box and a cell depth and returns a set of triangular data-Polygon's in a grid.
lawn_triangle_grid(extent, cellSide, units = "kilometers", mask = NULL)
extent |
(numeric) Extent in |
cellSide |
(integer) dimension of each cell. |
units |
(character) Units to use for cellSide, one of miles, kilometers, degrees, radians |
mask |
(logical) if passed a Polygon or MultiPolygon, the grid Points will be created only inside it |
data-FeatureCollection grid of data-Polygon's
Other interpolation:
lawn_hex_grid(),
lawn_isolines(),
lawn_planepoint(),
lawn_point_grid(),
lawn_square_grid(),
lawn_tin()
lawn_triangle_grid(c(-77.3876, 38.7198, -76.9482, 39.0277), 30, 'miles') lawn_triangle_grid(c(-77.3876, 38.7198, -76.9482, 39.0277), 10, 'miles') lawn_triangle_grid(c(-77.3876, 38.7198, -76.9482, 39.0277), 3, 'miles')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.