
Find optimal hexagonal cell size for target number of cells
find_hex_cell_size_for_target_cells.RdUses binary search to find the hexagonal cell size (flat-to-flat distance) that produces approximately the target number of hexagons.
Usage
find_hex_cell_size_for_target_cells(
study_area,
target_cells,
cell_size_min = 0.001,
cell_size_max = 10,
tol = 0.05,
max_iter = 20
)