lawn_hex_grid | R Documentation |
Takes a bounding box and a cell size in degrees and returns a data-FeatureCollection of flat-topped hexagons (data-Polygon features) aligned in an "odd-q" vertical grid as described in Hexagonal Grids http://www.redblobgames.com/grids/hexagons/
lawn_hex_grid(extent, cellWidth, units)
extent |
(numeric) Extent in |
cellWidth |
(integer) Width of each cell. |
units |
(character) Units to use for cellWidth, one of 'miles' or 'kilometers'. |
A data-FeatureCollection grid of points.
Other interpolation:
lawn_isolines()
,
lawn_planepoint()
,
lawn_point_grid()
,
lawn_square_grid()
,
lawn_tin()
,
lawn_triangle_grid()
lawn_hex_grid(c(-96,31,-84,40), 50, 'miles') lawn_hex_grid(c(-96,31,-84,40), 30, 'miles')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.