Learn R Programming

quollr (version 0.3.7)

gen_hex_coord: Generate hexagonal polygon coordinates

Description

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

Usage

gen_hex_coord(centroids_data, a1)

Value

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

Arguments

centroids_data

The dataset with all hexagonal bin IDs and centroid coordinates.

a1

The width of the hexagon.

Examples

Run this code
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)

Run the code above in your browser using DataLab