Land doesn't vote, people do.
This is a version of the famous visualization «Land doesn't vote, people do» by Karim Douïeb for Switzerland written in R. It shows the results of the popular initiative «For responsible businesses – protecting human rights and the environment» at municipal level. All data used in this process was retrieved via the Swiss Open Government Data platform opendata.swiss. The code used can be found here.
Start vs. End (with legend)
Alternative visualisation
An alternative animation (here with the results of the Amendment of the Hunting Act) can be replicated with the help of script votemapswitzerland2.R
Steps
Links
Packages involved
- Data:
swissdd
- Spatial data operations:
sf
- Visualization:
ggplot2
andhrbrthemes
- Animation:
transformr
,tweenr
, andparticles