Skip to content
Invisible link to canonical for Microformats spain-munic-bot. Spanish municipalities, building by building. Map of Málaga buildings colored by construction period on a black background.

spain-munic-bot

Maps of Spanish municipalities generated with R


About the project

Site deployment progress last-visited last-tweet Followers ko-fi

This project generated maps of buildings in Spanish municipalities, inspired by Dominic Royé’s urban-growth visualizations. Automated posting is currently disabled. The last public output record is dated May 17, 2022.

Buildings

Example: buildings in Málaga grouped by construction period.

Buildings in Málaga colored by construction period, with a locator map of Spain.

Project journey

Map of municipalities visited by the bot: 7,536 of 7,608, or 99.05%, in the saved project record.

Browse the generated-map records.

R packages

Core packages used in the project are:

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.

Credits

Original execution workflow

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.