A web application for viewing energy mixes

Posted on

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.

5 thoughts on “A web application for viewing energy mixes

    Ken Wilkinson said:
    January 4, 2016 at 11:19 am

    Brilliant! I like your infographics as they shut up the green idiots

    Like

      Robert Wilson said:
      January 4, 2016 at 11:32 am

      I’m more interested in informing people than shutting them up.

      Liked by 1 person

    Jani-Petri Martikainen said:
    January 4, 2016 at 12:16 pm

    Great, thank you! It seems that there are some bugs at least with respect to per capita plots. (Finland about 25 toe/capita, Germany around 300.) Doesn’t divide by population I guess.

    Like

      Robert Wilson said:
      January 4, 2016 at 12:42 pm

      Ah. I see what’s causing that. It’s fine for everything but the plot with total consumption in a single area plot.

      The per-capita plots are correct now.

      Liked by 1 person

    claudeb said:
    January 4, 2016 at 4:31 pm

    Very interesting and informative! I will include a link to your blog/app in my class notes for my class on energy

    Like

Comments are closed.