The data set we will be exploring is the Energy Data from the TidyTuesday repository, which comes from Our World in Data. The dataset includes data on energy consumption, carbon emissions and the different energy sources (TidyTuesday, n.d.).
Our question is “Based on recent trends in the consumption of fossil fuels and renewable energy sources, can we achieve the global target of the Paris Agreement to reach net zero carbon emissions by 2050?” (United Nations, n.d.). Global warming, which is caused by excessive emissions of greenhouse gases, is a pressing issue that needs to be addressed as it has caused an increased number of natural disasters and unusual weather phenomena in recent years. One of the largest contributors to greenhouse gas emissions is the burning of fossil fuels for energy, especially for the generation of electricity (United Nations, n.d.). Thus, we are interested to see if the Paris Agreement can be achieved by the set deadline through analysing the global trends in greenhouse gas emissions, energy consumption and electricity generation since 2000.
We will be making three graphs to address our question. First, a line graph is plotted to visualise the global trend of greenhouse gas emissions. Second, would be a bar graph showing the global consumption of fossil fuels and renewables. Finally, the last graph is an area chart showing the electricity generated from fossil fuels and renewables.
# Loading Library
library(tidyverse)
# Reading Dataset
owid_energy <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2023/2023-06-06/owid-energy.csv')
# Primary Cleaning
owid_energy = owid_energy %>%
filter(country == "World") %>%
filter(year >= 2000)
# Selecting Important Data
data1 = owid_energy %>%
select(country,year,greenhouse_gas_emissions)
# Plotting
graph1 = ggplot(data1,aes(x = year, y = greenhouse_gas_emissions)) +
geom_line(size = 1) +
labs(title = "World's Greenhouse Gas Emissions ", x = "Year", y = "Greenhouse Gas Emissions (MTCO2e)") +
theme_minimal()
graph1
In Graph 1, a line graph has been plotted, showing a generally increasing trend of global gas emissions from 2000 to 2021. From the graph, there are 3 distinct dips, indicating a decrease in global greenhouse gas emissions. Around the year 2008-2009, there is a slight dip in global gas emissions, before increasing sharply after. This slight decrease could be due to the global financial crisis, in which global recession, falling global demand and high oil prices played a major role in reducing the rate of emissions (Clark, 2009). The dip around the year 2015 could be explained by the increase in clean energy development, such as the decrease of coal use in China, whose carbon dioxide emissions account for nearly one-third of global emissions and was largely responsible for the decline in global emissions. More than half of new energy needs in China were met in 2014 from non-fossil fuel sources, such as hydro, nuclear, wind and solar power (McKenna, 2015). The last dip occurred around 2020, where emissions plunged 4.6%, due to COVID-19 causing heavy lockdowns, restriction of global mobility, and hampering economic activity. However, global greenhouse gas emissions rebounded after 2020 to a new record of 6.4%, eclipsing pre-pandemic peak as global activity resumed (Bhaumati, 2022). This shows that current climate policies have not been effective in decreasing global emissions, and it will be extremely difficult to meet the targets of the Paris Agreement, based on current trends.
# Selecting Important Data
data2 = owid_energy %>%
select(country,year, fossil_fuel_consumption, renewables_consumption) %>%
gather(`fossil_fuel_consumption`: `renewables_consumption`,key= "consumption_type",value="consumption_amount")
# Plotting
options(scipen = 999)
graph2 = ggplot(data2, aes(x=year , y=consumption_amount, fill= consumption_type)) +
geom_col(position = position_dodge(width = 0.9)) +
labs(x = "Year", y = "Consumption Amount (TWH)", fill="Consumption Type") +
ggtitle("World's Consumption Comparison") +
theme_minimal()
graph2
In Graph 2, a grouped bar graph is plotted, showing the trend of consumption of fossil fuels and renewables from 2000 to 2021. Based on the graph, both fossil fuels and renewables show an increasing trend. This shows that the level of consumption of fossil fuels is not affected by the level of consumption of renewables. Since renewables are seen as a replacement of fossil fuels in generating electricity, current policies have not been effective in decreasing the use of fossil fuels and encouraging the use of renewables.
# Selecting Important Data
data3 = owid_energy %>%
select(c(year, biofuel_electricity, hydro_electricity, nuclear_electricity, solar_electricity, wind_electricity, coal_electricity, gas_electricity, oil_electricity)) %>%
pivot_longer(c(biofuel_electricity, hydro_electricity, nuclear_electricity, solar_electricity, wind_electricity, coal_electricity, gas_electricity, oil_electricity),
names_to = "electricity_source", values_to = "generation_amount") %>%
mutate(electricity_source = factor(electricity_source,
levels = c("biofuel_electricity", "hydro_electricity", "nuclear_electricity", "solar_electricity", "wind_electricity", "coal_electricity", "gas_electricity", "oil_electricity")))
# Assigning Colors
renewables_colors <- c("#00FF00", "#00CC00", "#009900", "#006600", "#003300")
fossil_fuels_colors <- c("#FF0000", "#CC0000", "#990000")
# Plotting
graph3 = ggplot(data3, aes(fill = electricity_source, x = year, y = generation_amount)) +
geom_density(position="stack", stat="identity") +
labs(title = "World's Electricity Generation ", x = "Year", y = "ElectricitY Generation (TWH)", fill = "Electricity Source") +
scale_fill_manual(values = c(renewables_colors, fossil_fuels_colors),
labels = c("Biofuel", "Hydro", "Nuclear", "Solar", "Wind", "Coal", "Gas", "Oil")) +
theme_minimal()
graph3
In Graph 3, a stacked area chart has been plotted, showing the amount of electricity generated from different electricity sources from 2000 to 2021. The green area shows the portion of electricity generated from renewable sources (biofuel, hydro, nuclear, solar, wind), while the red area shows the portion of electricity generated from fossil fuels (coal, gas and oil). There is a generally increasing trend of global electricity generation. Comparing the amount of electricity generated from renewable sources, hydro and nuclear are the main drivers, contributing a large majority. However, the increase of electricity generated from these two sources is not significant. The reason could be because nuclear sources can have significant implications on the environment if an accident occurs. Additionally, it is difficult and costly to build the infrastructure required to generate hydroelectricity. There is also a diversifying trend for renewables, with more electricity being generated from wind and biofuel sources. However, the increase of generated electricity from renewable sources is comparable to that of fossil fuel sources. This could be due to high costs and logistical barriers to develop renewable sources. Once the infrastructure for renewable energy sources grows, the amount of renewable electricity should increase more significantly.
In conclusion, current trends in fossil fuels and renewables indicate a low probability of achieving global targets set by the Paris Agreement and reaching net zero carbon emissions by 2050. However, with the increase of adoption of new renewable sources, and the implementation of more comprehensive climate policies, we can slow down the rate of global warming and approach the global targets in the Paris Agreement.
# Introduction: A0221872H Phuah Yi Shan Kristy
# Discussion: A0239244A Karis Chua Xin Hui
# Graph 1: A0266287N Quah Qian Hui
# Graph 2: A0239640A Chow Hui Ming
# Graph 3: A0262357B Pang Yi Hahn
TidyTuesday Repository. (n.d.). Energy Data. GitHub. Retrieved from https://github.com/rfordatascience/tidytuesday/blob/master/data/2023/2023-06-06/readme.md.
United Nations. (n.d.). For a livable climate: Net-zero commitments must be backed by credible action. Retrieved from https://www.un.org/en/climatechange/net-zero-coalition.
United Nations. (n.d.). Causes and effects of climate change. Retrieved from https://www.un.org/en/climatechange/science/causes-effects-climate-change#:~:text=Fossil%20fuels%20%E2%80%93%20coal%2C%20oil%20and,of%20all%20carbon%20dioxide%20emissions.
Clark, Duncan (2009, Jun 25). “Growth of global carbon emissions halved in 2008, say Dutch researchers”. The Guardian. Retrieved from https://www.theguardian.com/environment/2009/jun/25/carbon-emissions.
McKenna, Phil (2015, December 7). “Global CO2 Emissions Decline in 2015 After Soaring for a Decade, Study Says”. Inside Climate News. Retrieved from https://insideclimatenews.org/news/07122015/global-carbon-emissions-rising-decades-decline-2015-study-climate-change-paris/.
P. Bhanumati (2022, June 30). “Greenhouse Emissions Rise to Record, Erasing Drop During Pandemic”. IMF Blog. Retrieved from https://www.imf.org/en/Blogs/Articles/2022/06/30/greenhouse-emissions-rise-to-record-erasing-drop-during-pandemic#:~:text=Emissions%20of%20carbon%20dioxide%20and,permanent%20shift%20downwards%20in%20emissions.