Gerrymandering I
Feb-17
: In this lesson, we will practice reproducible geographic research with a research compendium.
Goals and Expectations
- Create a reproducible research compendium
- Plan a study to measure districting fairness in the context of gerrymandering
- Knit the analysis plan to
html
format and save to the docs
folder
- Update the project
readme.md
and LICENSE
files, and documentation of procedure_index.csv
, data_index.csv
, and data/metadata
.
- Create a version
release
of your compendium on GitHub prior to analyzing any data
- Based on what you know of the reproducibility crisis and/or your own geographic research projects, post a short blog about the relative value or burden of starting a project with a compendium and analysis plan.
- Start implementing the study using R
Tutorial Application
In this tutorial, we will get an introduction to practicing open science by:
Software
R packages for reproducible spatial analysis
- groundhog for reproducible computational environments (consistent versions of R and its packages)
- here for reproducible path names
- tidyverse includes dplyr for database-style data frames
- sf provides support for spatial vector data implementing the OSGeo simple features standards we are accustomed to
- stars spatial-temporal raster data in R
- tmap thematic maps, including static maps or interactive leaflet maps
Alternative packages
Other Tutorial Resources
References
- Nüst, D., and E. Pebesma. 2021. Practical Reproducibility in Geography and Geosciences. Annals of the American Association of Geographers 111 (5):1300–1310. DOI:10.1080/24694452.2020.1806028.
- Wilson, J. P., K. Butler, S. Gao, Y. Hu, W. Li, and D. J. Wright. 2021. A Five-Star Guide for Achieving Replicability and Reproducibility When Working with GIS Software and Algorithms. Annals of the American Association of Geographers 111 (5):1311–1317. DOI:10.1080/24694452.2020.1806026.
- Ibanez, L., W. J. Schroeder, and M. D. Hanwell. 2014. Practicing open science. In Implementing Reproducible Research, eds. V. Stodden, F. Leisch, and R. D. Peng, 241–280. Boca Raton: CRC Press.
- Millman, K. J., and F. Perez. 2014. Developing Open-Source Scientific Practice. In Implementing Reproducible Research, eds. V. Stodden, F. Leisch, and R. D. Peng, 149–183. Boca Raton: CRC Press.
- Nüst, D., C. Boettiger, and B. Marwick. 2018. How to Read a Research Compendium. arXiv:1806.09525.
- Nüst and others are developing infrastructure for containerized executable compendia at o2r.info/
- Docker containers allow researchers to reproduce and share their research processing environments as virtual machines which can be run on a server. www.docker.com/
- Carl Boettiger’s research template
- WORCS Workflow for Open Reproducible Code in Science R Package
- Project TIER Protocol 4.0
Main Page