Builds the list-based grid specification of earlier hexify versions, kept
for code written against them and for 'dggridR' interchange. New code uses
hex_grid, which returns a HexGridInfo-class
object and covers every grid hexify supports. A hexify_grid prints as one
line.
Arguments
- area
Target cell area in km^2 (if metric=TRUE) or area code
- topology
Grid topology (only "HEXAGON" supported)
- metric
Whether area is in metric units (km^2)
- resround
How to round resolution ("nearest", "up", "down")
- aperture
Aperture sequence (3, 4, or 7)
- projection
Face projection, DGGRID's
dggs_proj: 'ISEA' (default) or 'FULLER'- radius_km
Radius of the body the grid covers, in kilometers, or a body name such as "mars" (default Earth). See
hex_grid.- x
A hexify_grid object
- ...
Ignored
Value
A hexify_grid object containing:
- area
Target cell area
- resolution
Calculated resolution level
- aperture
Grid aperture (3, 4, or 7)
- topology
Grid topology ("HEXAGON")
- projection
Face projection ("ISEA" or "FULLER")
- radius_km
Radius of the body, in kilometers
- index_type
Index encoding type ("z3", "z7", or "zorder")
See also
hexify for the main user function,
hexify_grid_to_cell for coordinate conversion
Other hexify main:
hexify()
Examples
# Create a grid with ~1000 km^2 cells
grid <- hexify_grid(area = 1000, aperture = 3)
print(grid)
# Create a finer resolution grid (~100 km^2 cells)
fine_grid <- hexify_grid(area = 100, aperture = 3, resround = "up")