This function generates all possible centroids in the full grid based on hexbin data.
Examples
num_bins_x <- 4
shape_value <- 1.833091
hexbin_data_object <- extract_hexbin_centroids(nldr_df = s_curve_noise_umap,
num_bins = num_bins_x, shape_val = shape_value)
df_bin_centroids <- hexbin_data_object$hexdf_data
generate_full_grid_centroids(df_bin_centroids)
#> # A tibble: 50 × 2
#> x y
#> <dbl> <dbl>
#> 1 -3.27 -5.74
#> 2 -1.84 -5.74
#> 3 -0.407 -5.74
#> 4 1.02 -5.74
#> 5 2.46 -5.74
#> 6 -3.27 -3.01
#> 7 -1.84 -3.01
#> 8 -0.407 -3.01
#> 9 1.02 -3.01
#> 10 2.46 -3.01
#> # ℹ 40 more rows