This repository contains R scripts for generating various visualizations related to greenhouse gas emissions and consumer behavior in the UK. These scripts leverage data from the UK Office for National Statistics (ONS) to provide insights through multiple graphical representations.
- Description: Displays consumer greenhouse gas (GHG) footprint by gas type for the years 1990, 2000, 2010, and 2020.
- Dependencies:
tidyverse
paletteer
- Features:
- Polar bar chart with percentages labeled.
- Faceted by year and gas type.
- Styled for clarity and presentation.
- Description: A tile-based heatmap showing emission intensity across sectors over the years.
- Dependencies:
viridis
dplyr
ggplot2
forcats
- Features:
- Color gradient representing emission levels.
- Sector names reordered by emission levels.
- Clear labeling and intuitive color scaling.
- Description: Tracks the emission trends of the highest emitting sectors over time.
- Dependencies:
tidyverse
viridis
- Features:
- Highlights key historical events (e.g., Paris Agreement and COVID-19).
- Emissions displayed in million tonnes.
- Color-coded sectors for easy differentiation.
- Description: A map visualizing CO2e emissions by region in the UK.
- Dependencies:
tidyverse
sf
ggmap
tmap
rnaturalearth
- Features:
- Geospatial representation of emissions intensity.
- Regional labels and dynamic coloring.
- Minimalist styling for better focus on data.
- Description: Displays scaled trends for different gas types over time.
- Dependencies:
tidyverse
- Features:
- Log-scaled y-axis for a clear view of emission changes.
- Highlighted historical drops and events.
- Smooth trendlines and annotations for significant points.
- Clone the repository:
git clone <repository-url> cd <repository-folder>
- Load the required datasets:
vis_data10.RData
geospatial_data.RData
- Install the necessary R libraries:
install.packages(c("tidyverse", "paletteer", "viridis", "sf", "ggmap", "tmap", "rnaturalearth"))
- UK Office for National Statistics (ONS) - UK Environmental Accounts.
- UK Greenhouse Gas Emissions: Local Authority and Regional data.
Feel free to contribute by:
- Improving scripts.
- Adding new visualizations.
- Providing feedback and suggestions.
Special thanks to the UK ONS for providing comprehensive environmental accounts data.
Visualizations are critical for understanding complex data trends. Explore the repository and share your feedback to improve the presentation and insights further!