gen_hex_coord {quollr}R 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)


[Package quollr version 0.3.7 Index]