| hexify_compare_resolutions | R Documentation |
Generates a table comparing different resolution levels for a given grid configuration. Useful for choosing appropriate resolution.
hexify_compare_resolutions(
aperture = 3,
res_range = 0:15,
type = c("isea", "h3"),
print = FALSE
)
aperture |
Grid aperture (3, 4, or 7). Ignored for H3 grids. |
res_range |
Range of resolutions to compare (e.g., 1:10) |
type |
Grid type: "isea" (default) or "h3". |
print |
If TRUE, prints a formatted table to console. If FALSE (default), returns a data frame. |
If print=FALSE: data frame with columns resolution, n_cells, cell_area_km2, cell_spacing_km, cls_km. If print=TRUE: invisibly returns the data frame after printing.
Other grid statistics:
dg_closest_res_to_area(),
dgearthstat(),
hexify_area_to_eff_res(),
hexify_eff_res_to_area(),
hexify_eff_res_to_resolution(),
hexify_resolution_to_eff_res()
# Get data frame of resolutions 0-10 for aperture 3
comparison <- hexify_compare_resolutions(aperture = 3, res_range = 0:10)
print(comparison)
# Print formatted table directly
hexify_compare_resolutions(aperture = 3, res_range = 0:10, print = TRUE)
# Find resolution with cells ~1000 km^2
subset(comparison, cell_area_km2 > 900 & cell_area_km2 < 1100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.