30 January 2013

China's primary energy

I have made a chart showing the trend in China's primary energy production and consumption.

I got the raw data from International Energy Statistics part of the US Energy Information Administration webpage. I downloaded two sets of time series data, production and cosumption, from 1980 to 2011 as Excel spreadsheets. I opened each sheet with a spreadsheet program (Gnumeric) and saved each file as a comma separated values file. I then opened each CSV file with a text editor and copied the numbers separated by commas into the script sheet of Rkward, the script editor I use with R.