hex_corners_to_sf: Build an sf POLYGON from six (lon, lat) corner pairs

View source: R/hexify_cell_to_sf.R

hex_corners_to_sfR Documentation

Build an sf POLYGON from six (lon, lat) corner pairs

Description

Low-level helper to create a single hexagon polygon from corner coordinates. Most users should use cell_to_sf instead.

Usage

hex_corners_to_sf(lon, lat, crs = 4326)

Arguments

lon

numeric vector of length 6 (longitude)

lat

numeric vector of length 6 (latitude)

crs

integer CRS (default 4326)

Value

sf object with one POLYGON geometry

See Also

Other sf conversion: hexify_cell_to_sf(), hexify_grid_global(), hexify_grid_rect()


hexify documentation built on March 1, 2026, 1:07 a.m.