data
folder (this also contains the script for anonymising original data files)ChoroplethMagnitude.qmd
(quarto) fileWe provide resources for re-creating the computational environment (R version, package versions) used for all data wrangling, data visualization, statistical modelling, and reporting. This will generate a fully interactive RStudio session, which will be running from a Docker container.
choroplethmagnitude
(Docker won't accept uppercase letters in the directory name)docker build -t choroplethmagnitude .
(where choroplethmagnitude
is the repository name). This builds the Docker image.docker run --rm -p 8787:8787 -e PASSWORD=password choroplethmagnitude
to launch the Docker container.localhost:8787
rstudio
as the username and password
as the password. ChoroplethMagnitude.qmd
and press Render to generate ChoroplethMagnitude.pdf
Note: Computationally intensive statistical models have been saved in ChoroplethMagnitude_cache
. To speed-up rendering, these cached models are loaded instead of executing the code that generated them. To generate models from scratch, change the eval_models
parameter in line 5 to true
.