I have created a web application for viewing energy mixes of countries. Check it out here.
It uses energy data from BP and population data from Gapminder to chart the changes in energy mixes of countries since 1965. There are 4 different plot types available, and in each plot you can either look at total energy consumption or per-capita energy consumption.
Primary energy consumption is used in these plots. You can measure energy consumption in a variety of ways, some of these are discussed by me here. The renewables proportion of energy consumption in these charts will be higher than calculated by the EU for their renewable energy targets, because they use final energy consumption. On the other hand, the figures in these plots will be reflective of those use for China in its INDC, which has a target of “around 20%” of its primary energy coming from low-carbon sources by 2030.
A weakness of BP’s figures is that they do not include most of Africa. They also do not include most bioenergy, thought they have some for biomass used in electricity generation. I have decided to exclude bioenergy totally from the plots until I can get better data. However, for the EU and US this should just be a case of pulling in data from Eurostat and EIA which I have somewhere.
The app is still a work in progress and I plan to add some extra features. For example, I will be adding in the ability to look at growth rates for individual energy sources.
For now this is hosted at the shinyapps.io, a free service. There is a limit to how much the app can be used, so if it gets popular the app will become unavailable until the start of the next month. I am considering turning these things into a website, but the chances of me doing this before the end of the year are slim: I’m too busy, and I wouldn’t know where to start with building a website.
The app was written in R and uses the shiny package. Anyone who wants the code can email me and I can pass it on. At some point, once it is more fully featured, I will add the code to my Github repositories.
If anyone has suggestions for additions or improvements, please add a comment.