Visualises the change in countries' demographic profiles over time.
These charts, as well as the analyses that underpin them, are available under a Creative Commons Attribution 4.0 licence. This includes commercial reuse and derivates.
Data in these charts comes from:
Please attribute 360info and the data sources when you use and remix these visualisations.
Animations and image sequences ready for editing software are in the /out
folder.
This project comes with a ready-to-use dev container that includes everything you need to reproduce the analysis (or do a similar one of your own!), including R and Quarto.
You can run the container in GitHub Codespaces without any setup:
Or, if you have Docker installed, you can build and run the container locally:
- Download or clone the project
- Open it in Visual Studio Code
- Run the Remote-Containers: Reopen in Container command
Once the container has launched (it might take a few minutes to set up the first time), you can run the analysis scripts with:
quarto render
Or look for the .qmd
files to modify the analysis. (Note: the image sequence rendering in index.qmd
throws an error that may prevent the file from being rendered normally. You can still run the code chunks manually in the codespace.)
To setup a development environment manually,
You'll need to:
- Download and install Quarto
- Download the install R
- Satisfy the R package dependencies. In R:
- Install the
renv
package withinstall.packages("renv")
, - Then run
renv::restore()
to install the R package dependencies. - (For problems satisfying R package dependencies, refer to Quarto's documentation on virtual environments.)
- Install the
Now, render the .qmd
files to the /out
directory with:
quarto render
If you find any problems with our analysis or charts, please feel free to create an issue!