This function generates the coordinates of hexagons after passing hexagonal centroids.
Value
A tibble contains polygon id, x and y coordinates (hex_poly_id, x, and y respectively) of hexagons.
Examples
width <- s_curve_obj$s_curve_umap_hb_obj$a1
all_centroids_df <- s_curve_obj$s_curve_umap_hb_obj$centroids
gen_hex_coord(centroids_df = all_centroids_df, a1 = width)
#> # A tibble: 1,440 × 3
#> hex_poly_id x y
#> <int> <dbl> <dbl>
#> 1 1 -0.1 -0.0408
#> 2 1 -0.141 -0.0646
#> 3 1 -0.141 -0.112
#> 4 1 -0.1 -0.136
#> 5 1 -0.0587 -0.112
#> 6 1 -0.0587 -0.0646
#> 7 2 -0.0174 -0.0408
#> 8 2 -0.0587 -0.0646
#> 9 2 -0.0587 -0.112
#> 10 2 -0.0174 -0.136
#> # ℹ 1,430 more rows