Skip to content
Reproduce "Regional population structures at a glance"
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
R
data
.gitignore
LICENSE
README.md
_config.yml
colorcoded-map-ikashnitsky-jschoeley.pdf
colorcoded-map-ikashnitsky-jschoeley.png
the-lancet-2018.Rproj

README.md

doi osf

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

  1. Fork this repository or unzip the archive.
  2. Using RStudio open "the-lancet-2018.Rproj" file in the main project directory.
  3. 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

You can’t perform that action at this time.