The bot generated a map of a Spanish town together with its name, province and autonomous community (and an inset map of Spain showing the region and the community). The bot was configured to publish every 20 minutes. Automated posting is currently disabled. The last public output record is dated May 17, 2022.
The project maps the urban growth of Spanish cities, based on the works of Dominic Royé: Visualize urban growth
Browse the generated-map records.
Core packages used in the project are:
- CatastRo for the buildings.
- mapSpain for the location of the municipalities.
- ggplot2 for plotting.
- rtweet for posting.
Other packages include sf, dplyr and supporting tools.
The project uses renv to record its R package dependencies. External data services and publishing APIs may have changed since the maps were generated.
-
Based on
- italiancomuni, by @espinielli.
-
Automation:
- GitHub Actions based on @espinielli's GitHub Repo.
-
Sources:
The original entry point is shown below. It invokes the map-generation and Twitter publishing code. Review its configuration, dependencies and API credentials before running it. The command can publish posts.
$ Rscript R/trigger.R
The entry point attempts to run R/01_create_map.R three times per invocation. Each successful run can publish a map and update the local log.

