Awesome
Kashnitsky, I., & Schöley, J. (2018). Regional population structures at a glance. The Lancet, 392(10143), 209–210. https://doi.org/10.1016/S0140-6736(18)31194-2
Full text of the paper is available here. (OSF)
To replicate the map, follow the instructions in "R/master-script.R" and, of course, feel free to explore in depth the chunks of code in "R" directory.
If you have any questions, feel free to contact me: ilya.kashnitsky@gmail.com. For the questions about tricolore
please contact Jonas: jschoeley@gmail.com.
Folow us on Twitter: @ikashnitsky, @jschoeley.
REPLICATION. HOW TO
- Fork this repository or unzip the archive.
- Using RStudio open "the-lancet-2018.Rproj" file in the main project directory.
- Run the "R/master_script.R" file. Wait. That's it. The results are stored in the directory "_output".
LOGIC OF THE PROCESS
The whole process is split into four parts, which is reflected in the structure of R scripts. First, the steps required for reproducibility are taken. Second, we define own functions. Next, all data acquisition and manipulation steps are performed.Finally, the map is built. The names of the scripts are quite indicative, and each script is reasonably commented.
SEE ALSO
- My PhD project -- Regional demographic convergence in Europe
- Blog post on the first version of the map presented at Rostock Retreat Visualization in June 2017
- Paper (Schöley & Willekens 2017) with the initial ideas for tricolore package
- An example of ternary colorcoding used to visualize cause-of-death data
- My other paper , which explores regional differences in population age structures