Greenhouse Gas Emissions Across the World Trends

Posted on Aug 12, 2019
The skills we demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


Greenhouse gas emissions are a hot (no pun intended!) topic across the world. As the world experiences extreme temperatures – witness the unusually hot summer all of Europe had this year – this topic becomes of ever greater importance. Countries everywhere are signing international treaties pledging to reduce greenhouse gas emissions, and politicians in many countries are judged by the stand they take on this issue.

For this project, I examined the changes in greenhouse gas emissions across the world over time. I used time-series data from the World Bank to examine this issue in more detail. The World Bank’s indicators provide total greenhouse gas emissions in kilotons of CO2 equivalent from 1970 to 2012 for all countries that have this data.

I combined these data with the World Bank’s time-series data on the total population of these countries for the same time period to create an additional measure of greenhouse gas emissions per capita. I felt this to be relevant, since per-capita emissions allow for standardizing of the emissions indicator by population size.

World Bank data

World Bank data have an additional advantage that they provide all indicator information for country groupings such as low-income, middle-income, fragile-states, South Asia etc. and also provide the world-wide totals.

I manipulated the data in R, and then created an interactive application using R Shiny that allows the user to understand the changes over time globally and for each country/country groupings, or for a pair of countries/country-groupings. The interactive application provides change over time information for three indicators:

  1. Greenhouse gas emissions per capita by country and over time
  2. Total greenhouse gas emissions by country and over time
  3. Total population by country and over time

Data manipulation:

For creating the greenhouse gas emissions per capita, I divided the total greenhouse gas emissions for each country/country-grouping by the total population for the country/country-grouping. To enable the plotting of graphs and creation of maps, I used the ‘Tidyr’ package in R to rotate the data to long form.

Since, I also plotted the graphs for total greenhouse gas emissions and for the total population, in addition to per-capita greenhouse emissions, I took the natural log of both measures. This is because the range for both indicators is very high. Population size for example ranges from a low of about 4000 in St. Martin, to a high of 7.5 billion for the world as a whole.

Similarly, total greenhouse gas emissions range from a low of about 1.4 kilotons for Turks and Caicos to a high of 53.5 million kilotons for the world as a whole. Plotting such extremes is difficult, since it is harder to calibrate the y-axis to accommodate this range. Taking the natural log of both measures was therefore a logical step.


I plotted all time-series graphs using line-graphs and used R’s ‘Plotly’ package to make them interactive. I fixed the y-axis scale at both extremes for all graphs in order to ensure comparability across countries. Not doing so, would have meant mean that R would re-calibrate the y-axis scale for each country, thereby magnifying small fluctuations over time, and providing a misleading picture of trends. The Plotly package in R allows for specific time-series graphs to be magnified and examined more closely if desired.

In addition to creating line-graphs showing the changes over time, I also used the ‘GvisGeoChart’ world map to create an interactive world map, to show the changes over time for all countries across the world for all three indicators.


The findings show that it is important to examine both per-capita emissions and total emissions over time. While the total greenhouse gas emissions are the highest for large countries such as the United States and China (which likely reflects the size of their economies as well as the size of their populations), the results of the per-capita emissions show that wealthy countries that have small populations, such as Australia, New Zealand, Iceland and the countries in the Middle-East, such as UAE, Bahrain, and Qatar, have very high greenhouse gas emissions per capita.

This indicates that being a high-income country, and having a high associated standard of living is accompanied by high greenhouse gas emissions per capita, even if the country’s overall greenhouse gas emissions are lower than countries such as the United States and China.

The only exceptions to this trend are the Central African Republic and the Democratic Republic of the Congo. It’s unclear as to why these two countries should have high per-capita greenhouse gas emissions, but the Central African Republic has the highest gas emissions per capita of all countries.

Emissions Per Capita in 1970:

Emissions Per Capita in 2005:

Emissions Per Capita in 2012:

Total Greenhouse Gas Emissions Are Highest in China and the United States:

The Two Fastest Growing Economies Also Have Increasingly High Emissions:

The World's Emissions Are Increasing, but Poorer Countries Have Lower Emissions:

Total Emissions Across the World in 1970:

Total Emissions Across the World in 2005:

Total Emissions Across the World in 2012:

The World's Population is Steadily Increasing:

The World's Population in 1970:

The World's Population in 2012 -- India and China Remain the Most Populous:


Despite variations across countries over time, the one thing these data clearly show is that the world’s total greenhouse gas emissions are trending steeply upwards. This should be a cause for concern for anyone invested in our planet’s overall health and sustainability. As the world's total population increases, and countries justly strive to provide their people with a higher standard of living, we need to invest in sustainable technologies and in reducing carbon emissions in order that future generations may live without facing the destructive effects of climate change and increased emissions.


About Author

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI