This repository contains the code, datasets, and outputs for visualizing per-capita wind energy capacity by country.
This project visualizes the per-capita wind energy capacity (in kW per person) globally, based on population and wind energy capacity data. The project uses R to calculate and map global wind capacity trends, allowing for insightful comparisons between countries.
-
Population Data (
POP.csv):- Contains:
- ISO3 country codes.
- Country names.
- Population data in thousands.
- Used to calculate actual population values.
- Contains:
-
Wind Energy Data (
Data_windenergy.xlsx):- Contains:
- Country names.
- Wind energy capacity in megawatts (MW).
- Used to calculate total and per-capita wind capacity.
- Contains:
The project generates two maps:
-
Map_plot_with_customised_dataset.png:- Based on real datasets (
POP.csvandData_windenergy.xlsx). - Visualizes per-capita wind capacity globally.
- Based on real datasets (
-
Versatile_map_plot.png:- Created with example data in
Versatile_map.R. - Demonstrates the flexibility of the mapping script.
- Created with example data in
To run this project, you will need:
- R (≥ 4.0.0)
- The following R libraries:
readxl: For reading Excel files.dplyr: For data manipulation.ggplot2: For visualization.sf: For spatial data handling.rnaturalearth: For world map data.
Install these libraries in R using:
install.packages(c("readxl", "dplyr", "ggplot2", "sf", "rnaturalearth"))
### Steps to Run
1. Clone the repository: git clone https://github.com/Deepikag8/R_Map_Project.git
# R_Map_Project