https://github.com/zumbov2/votemapswitzerland
A Swiss version of the famous visualization «Land doesn't vote, people do.»
https://github.com/zumbov2/votemapswitzerland
animated bubble-chart dataviz map politics rstats switzerland
Last synced: 6 months ago
JSON representation
A Swiss version of the famous visualization «Land doesn't vote, people do.»
- Host: GitHub
- URL: https://github.com/zumbov2/votemapswitzerland
- Owner: zumbov2
- Created: 2020-12-16T12:15:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-02T21:02:44.000Z (over 3 years ago)
- Last Synced: 2024-12-07T04:13:53.916Z (7 months ago)
- Topics: animated, bubble-chart, dataviz, map, politics, rstats, switzerland
- Language: R
- Homepage:
- Size: 27.1 MB
- Stars: 168
- Watchers: 4
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Land doesn't vote, people do.
This is a version of the famous visualization [«Land doesn't vote, people do»](https://themorningnews.org/p/the-history-of-the-map-behind-land-doesnt-vote-people-do) by [Karim Douïeb](https://twitter.com/karim_douieb) for Switzerland written in [R](https://www.r-project.org/). It shows the results of the popular initiative [«For responsible businesses – protecting human rights and the environment»](https://www.admin.ch/gov/en/start/documentation/votes/20201129/iniziativa-popolare-per-imprese-responsabili-a-tutela-dell-essere-umano-e-dell-ambiente.html) at municipal level. All [data used in this process](https://opendata.swiss/de/dataset/echtzeitdaten-am-abstimmungstag-zu-eidgenoessischen-abstimmungsvorlagen) was retrieved via the Swiss Open Government Data platform [opendata.swiss](https://opendata.swiss). The code used can be found [here](https://github.com/zumbov2/votemapswitzerland/blob/main/votemapswitzerland.R).
![]()
## Start vs. End (with legend)
![]()
# Alternative visualisation
An alternative animation (here with the results of the [Amendment of the Hunting Act](https://www.admin.ch/gov/en/start/documentation/votes/20200927/amendment-of-the-hunting-act.html)) can be replicated with the help of script [votemapswitzerland2.R](https://github.com/zumbov2/votemapswitzerland/blob/main/votemapswitzerland2.R)
![]()
## Steps
![]()
# Links
## Packages involved
* Data: [`swissdd`](https://github.com/politanch/swissdd)
* Spatial data operations: [`sf`](https://github.com/r-spatial/sf)
* Visualization: [`ggplot2`](https://github.com/tidyverse/ggplot2) and [`hrbrthemes`](https://github.com/hrbrmstr/hrbrthemes)
* Animation: [`transformr`](https://github.com/thomasp85/transformr), [`tweenr`](https://github.com/thomasp85/tweenr), and [`particles`](https://github.com/thomasp85/particles)## Media and more
* [R Weekly 2020-W51](https://rweekly.org/2020-51.html)
* [R Weekly 2021-W01](https://rweekly.org/2021-W01.html)
* [R Weekly Podcast, Issue 2021-W01 Highlights](https://rweekly.fireside.fm/21)
* [reddit](https://www.reddit.com/r/dataisbeautiful/comments/knfbvp/oc_dont_trust_a_choropleth_mapevidence_from/)
* [twitter](https://twitter.com/DavidZumbach/status/1344547411985911808)
* [PrixCarto 2021](https://kartografie.ch/verleihung-prixcarto-2021/) / [Laudatio](https://kartografie.ch/wp-content/uploads//PrixCarto21_Laudationes.pdf) by [Ralph Straumann](https://www.ralphstraumann.ch/)