The goal of zonebuilder is to break up large geographic regions such as cities into manageable zones. Zoning systems are important in many fields, including demographics, economy, health, and transport. The zones have standard configuration, which enabled comparability across cities. See its website at zonebuilders.github.io/zonebuilder.
You can install the released version of zonebuilder from CRAN with:
Install it from GitHub with:
# install.packages("remotes") remotes::install_github("zonebuilders/zonebuilder")
Zonebuilder builds on the
sf package and works well with mapping packages such as
tmap, the last of which we’ll use in the following maps. Attaching the package provides the example datasets
london_c(), the geographic boundary and the centre of London:
library(zonebuilder) library(tmap) tm_shape(london_a()) + tm_borders() + tm_shape(london_c()) + tm_dots("red")
The main function
zb_zone breaks this geographical scale into zones. The default settings follow the ClockBoard configuration:
The idea behind this zoning system is based on the following principles:
zonebuilder does not only create zoning systems based on the CloadBoard layout as illustrated below.
zb_zone makes use of
zb_segment, which can also be used directly:
The package also contains a function to create zones based on a simple rectangular grid system:
Contributions are welcome!
It may be worth checking-in in a discussion post before opening an issue.