Visualises the growth of renewable electricity capacity and generation over the last 20 years using data from the International Renewable Energy Agency.
The map and the analysis that underpins it are available under a Creative Commons Attribution 4.0 licence. This includes commercial reuse and derivates.
The data is made available by the International Renewable Energy Agency, provided they are acknowledged as the source of the data.
Please attribute 360info and IRENA when you use and remix this visualisation.
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.
If you have a GitHub account, open the project in GitHub Codespaces for free with two clicks:
If you have Docker installed, you can also 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
We typically publish graphics using Quarto notebooks, which can be found in the*.qmd
files. Quarto allows reproducible analysis and visualisation to be done in a mix of languages, but we typically use R and Observable JS.
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 the map, please feel free to create an issue!