Convenience wrapper: fetches Natural Earth via ne_source() and builds a
Geoscale nested continent -> subregion -> country -> feature,
weighted by population and GDP.
Value
A Geoscale, with scale and source recorded in @meta so the
object is self-documenting and reproducible.
Details
feature is the atom: the Natural Earth unit. country sits above it as a
grouping of atoms, so it can only ever be coarser than feature.
Do not derive area weights from scale = 110; see geo_area().
Examples
if (FALSE) { # \dontrun{
gs <- ne_geoscale(scale = 110)
# roll population up from countries to sub-regions
lf <- S7::prop(gs, "leaves")
pop <- data.frame(country = lf$country, pop = lf$pop_est)
geo_recast(pop[!is.na(pop$country), ], gs,
from = "country", to = "subregion", rule = "sum")
} # }