Given an input multipolgyon spatial data frame this function calculates the required cell size of a regular or hexagonal grid.
calculate_cell_size(
shape,
shape_details = NULL,
learning_rate = 0.03,
grid_type = c("hexagonal", "regular"),
seed = NULL,
verbose = FALSE
)
A 'SpatialPolygonsDataFrame' object representing the original spatial polygons.
deprecated.
The rate at which the gradient descent finds the optimum cellsize to ensure that your gridded points fit within the outer boundary of the input polygons.
Either 'hexagonal' for a hexagonal grid (default) or 'regular' for a regular grid.
An optional random seed integer to be used for the grid calculation algorithm.
A logical indicating whether messages should be printed as the algorithm iterates.