Builds a geoscales::Geoscale over UTOPIA's eleven regions, nested
nation -> zone -> region, and attaches one of the reference map layouts.
Arguments
- layout
Which layout in
utopia$mapto take geometry from:"honeycomb"(default, the one the vignettes draw),"squares","island"or"continent".NULLbuilds the hierarchy with no geometry, which needs neithersfnor a map.- region
Optional subset of regions to keep, e.g.
c("R1","R2","R3")to match the three-region UTOPIA model.- area
Add an
areaweight measured from the geometry. The layouts carry no CRS, so this is planar area in the coordinates' own units.
Details
The hierarchy comes from utopia$geo and is keyed by region name, so it is
valid for every layout in utopia$map — the layouts place R1…R11
differently but share their names.
See also
Other geoscale:
check_geoscale_regions(),
plot_map(),
setGeoscale,config-method
Examples
if (FALSE) { # \dontrun{
gs <- utopia_geoscale()
geoscales::geo_children(gs, "zone", "WEST")
# the three-region model used in vignette("utopia-build")
gs3 <- utopia_geoscale(region = c("R1", "R2", "R3"))
mod <- newModel("UTOPIA", region = c("R1", "R2", "R3"), geoscale = gs3)
} # }
