gen_hex_coord: Generate hexagonal polygon coordinates

View source: R/2d.R

gen_hex_coordR Documentation

Generate hexagonal polygon coordinates

Description

This function generates the coordinates of hexagons after passing hexagonal centroids.

Usage

gen_hex_coord(centroids_data, a1)

Arguments

centroids_data

The dataset with all hexagonal bin IDs and centroid coordinates.

a1

The width of the hexagon.

Value

A tibble contains hexagon id (h), x and y coordinates (x, y) of hexagons.

Examples

width <- scurve_model_obj$hb_obj$a1
all_centroids_df <- scurve_model_obj$hb_obj$centroids
gen_hex_coord(centroids_data = all_centroids_df, a1 = width)


quollr documentation built on Aug. 8, 2025, 6:08 p.m.