MSCS 164A Final Project
Climate Heroes and Zeroes
Photo by Johnnathan Tshibangu on Unsplash

I. INTRODUCTION:

In recent years, carbon dioxide (\(CO_2\)), a molecule born from the combustion of fossil fuels, has become a silent yet potent threat to human life and the environment. As the primary greenhouse gas, \(CO_2\) emissions play a crucial role in climate change, casting a long shadow of devastating consequences across the globe. Rising sea levels threaten coastal communities, the temperature reaches the highest in hundreds of years, wildfires rage across parched landscapes, and droughts cast long shadows across fertile lands. These are not isolated incidents, but rather the consequences of the rising carbon dioxide emissions caused by the demand for energy. In this article, we will navigate a sea of data, charting the course of emissions across diverse nations and continents, and uncovering the intricate connections between human activity and the shifting balance of our planet.

II. DATASETS:

For this article, we used three datasets:

For the first dataset, since it includes both data from nations and continents, we decided to split it into to a sub-dataset (continent_co2 and county_co2) using filter(). We also used join() functions and parse_number to tidy the Climate Disasters dataset.

We also utilized the countrycode package to get the ISO Code and the official names of nations and continents.

III. QUESTIONS:

1. Which countries emitted the most \(CO_2\) from 1970 to 2021?

Stacked area chart illustrating the distribution of each CO2 sources with facets for each country. On X axis is year (range: 1970 - 2020) and y axis is carbon dioxide emissions (0 - 120 hundreds of millions tonnes). USA and China have the highest cummulative of CO2 emission up to 2021. Most of the CO2 emission was contributed from coal, gas, land use, and oil.

Fig 1. A plot of Top 10 Countries with The Highest Carbon Dioxide Emission (updated at 2021)

Table 1.Top 10 emitting countries (1970 - 2021)
Country Rank Primary Source 2021
United States 1 Oil
China 2 Coal
Russia 3 Gas
Brazil 4 Land Use
India 5 Coal
Germany 6 Coal
Indonesia 7 Land Use
United Kingdom 8 Gas
Canada 9 Oil
Japan 10 Coal

According to the plot, industry-heavy countries, led by the United States and China, contribute the world’s share of global \(CO_2\) emissions, with China’s contribution experiencing a rapid rise after 2000, nearly doubling its previous output. Coal, land use, and oil remain the dominant sources. This alarming trend highlights the critical need for collective action from major emitters, including transitioning to cleaner energy sources and implementing sustainable practices, to mitigate further climate change impacts.

Wealthy countries, particularly the United States, have emitted the lion’s share of greenhouse gases that led to the climate crisis. However, it is important to note that contemporary observations reveal the involvement of certain developing nations in this global environmental challenge.

Since the onset of the Industrial Revolution in the 18th century, human activities have raised atmospheric \(CO_2\) by 50%1. Combining this fact with the graphs above, we can reinforce the correlation that human-induced carbon emissions, particularly from industrialized activities, have played a pivotal role in altering the composition of the Earth’s atmosphere, contributing significantly to the current climate challenges we face.

3. Which countries have the best and worst ecological footprints?

Ecological footprints are a measure that takes into account an individual or country’s usage of nature and biocapacity.2

That means that if my neighborhood is constantly churning out pollutants into the air and cutting up our green spaces to put in new buildings, I will have a high eco-footprint. If my neighbourhood is churning out pollutants into the air but keeping the green spaces, my ecological footprint will be bad but not horrible. If my neighbourhood uses clean energy, maintains (and even adds!) to its green spaces, it has a great ecological footprint, and might even have an ecological reserve instead of a deficit.

We can scale up this concept to countries! So we decided to take a look at the Top 10 worst ecological footprints and the Top 10 best ecological footprints. We filtered the data so that it used a per-capita measure. This is a targeted universalist approach as it means that it takes into account population sizes of countries.

a. Top 10 Highest Eco Footprint Deficit ❌

Stacked area chart illustrating the distribution of each CO2 sources with facets for each country. On X axis is year (range: 1970 - 2020) and y axis is carbon dioxide emissions (0 - 120 hundreds of millions tonnes). USA and China have the highest cummulative of CO2 emission up to 2021. Most of the CO2 emission was contributed from coal, gas, land use, and oil.

Fig 3. A plot of Top 10 Countries with The Highest Ecological Footprint (updated to 2021)

Fig 3. A plot of Top 10 Countries with The Highest Ecological Footprint (updated to 2021)

b. Top 10 Highest Eco-Footprint Reserves ✅

Stacked area chart illustrating the distribution of each CO2 sources with facets for each country. On X axis is year (range: 1970 - 2020) and y axis is carbon dioxide emissions (0 - 120 hundreds of millions tonnes). USA and China have the highest cummulative of CO2 emission up to 2021. Most of the CO2 emission was contributed from coal, gas, land use, and oil.

Fig 4. A plot of Top 10 Countries with The Lowest Ecological Footprint (updated to 2021)

Fig 4. A plot of Top 10 Countries with The Lowest Ecological Footprint (updated to 2021)

We thought: why just remain looking at countries?

We can also zoom out and look at climate heroes and zeros on a continental scale!

4. How has Climate Change evolved on a continental level since 1990?

5. Which continents have contributed the most to CO2 emissions since 1990?

Variable: co2_per_capita

Stacked bar chart illustrating the distribution of the share of CO2 sources for each continent per year since 1970. On y axis is year (range: 1970 - 2020) and x axis is carbon dioxide emissions (as a % of global value). North America contributes the most.

Fig 5. A plot of the share of each continent’s contribution to global CO2 emissions since 1970 (updated to 2021)

The graph demonstrates that we can see that Oceania, Europe and the Americas have contributed the most to Climate Change since the 1970s, with no real change in the shares of each continents contribution?

So now, which continents suffer the most from Climate Change related disasters?

7. Summing this all up, what can population, carbon emissions and GDP of a country/continent tell us about ecological footprint?

This is a Static / Interactive Plot

Scatter graph illustrating the CO2 per GDP for countries around the world vs population. On X axis is population (range: 1 million to 1 billion) and y axis is CO2 per GDP (0.0 to 1.2). USA and China have the highest cummulative of CO2 emission up to 2021. On the secondary axis, the dots of each country are coloured according to their continentThere is no real trend. Congo has the lowest CO2 per GDP

Fig 6. A plot of each country’s CO2 emissions per GDP amount and their population in 2018 (updated to 2021)

Fig 6. A plot of each country’s CO2 emissions per GDP amount and their population in 2018 (updated to 2021)

There is no real trend when it comes to population and a country’s CO2 per GDP dollar unit. We thought this would be interesting to explore as it could perhaps lead us to another insight (If there is a relationship between population and your emissions vs GDP output). What this shows is that even if you have a large population, it doesn’t really increase how much emissions you use vs your GDP.

IV. CONCLUSION:

From our brief exploration, we could begin to identify some Climate Heroes and Zeroes. It confirms what we thought: Climate Change identifies the Global South disproportionately (Mishra, S.K., Upadhyaya, P., Fasullo, J.T. et al, 2013) 3

States like Bangladesh or, at a continental level, continents like Africa clearly have minimal to do with causing global warming thanks to their CO2 emissions, yet they have the most amount of disasters.

COP28 just concluded (as of 14 December), and yet no significant funding or compensation mechanism was agreed for developing countries (The Guardian, 2023)4

Higher income, island nations and even higher income large nations (like the USA) need to do more to become more of Climate Heroes, or the history books might just relegate them to the depths of zeroes.

Credits:

Inspiration: pudding.cool

Styling: https://r-graph-gallery.com/ggplot2-package.html

Interactive Plot: https://plotly.com/ggplot2/

Cover Photo: by Johnnathan Tshibangu on Unsplash

Text Formatting: https://rstudio4edu.github.io/rstudio4edu-book/rmd-fancy.html

V. Appendix:

Here is the code that we utilized to make an ANIMATED PLOT. We commented it out and exported the image as a GIF to then re-insert into our RMD.

How country CO2 emissions and GDP has changed over time.

ggplot(continent_co2,

aes(x = co2, y=co2_per_capita, size = population, colour = country) ) + geom_point(show.legend = TRUE, alpha = 0.7) + scale_color_viridis_d() + scale_size(range = c(2, 12)) + scale_x_log10() + labs(x = "CO2 emissions", y = "CO2 per capita") + transition_time(year) + labs(title = "Year: {frame_time}") with facet wraps (ignore) #{r} ggplot( continent_co2, aes(x = co2, y=co2_per_capita, size = population, colour = country) ) + geom_point(show.legend = TRUE, alpha = 0.7) + scale_color_viridis_d() + scale_size(range = c(2, 12)) + scale_x_log10() + labs(x = "CO2 emissions", y = "CO2 per capita") + facet_wrap(~country) + transition_time(year) + labs(title = "Year: {frame_time}")

#{r} ggplot(continent_co2, aes(year, co2_per_capita, group = country, color = factor(country)) ) + geom_line() + scale_color_viridis_d() + labs(x = "Year", y = "CO2 Per Capita", color = "Continent", subtitle = "-", title = "Emissions over the years...", caption = "Data from Our World in Data Org" ) + theme(legend.position = "top") + geom_point(aes(group = seq_along(year))) + transition_reveal(year) #


  1. https://climate.nasa.gov/vital-signs/carbon-dioxide/#:~:text=Since%20the%20onset%20of%20industrial,ice%20age%2020%2C000%20years%20ago.↩︎

  2. https://www.footprintnetwork.org/our-work/ecological-footprint/↩︎

  3. Mishra, S.K., Upadhyaya, P., Fasullo, J.T. et al. A need for actionable climate projections across the Global South. Nat. Clim. Chang. 13, 883–886 (2023). https://doi.org/10.1038/s41558-023-01778-2↩︎

  4. https://www.theguardian.com/environment/2023/dec/13/what-the-cop28-agreement-says-and-what-it-means↩︎