This project visualizes population density in Alexandria using spatial data processing in R. The analysis leverages GIS techniques to read, transform, and map geospatial data.
- Reads and processes a TIFF file containing population density data.
- Converts raster data to an sf object for spatial analysis.
- Creates a percentile-based color map using the viridis color palette.
- Overlays administrative boundaries from a shapefile.
- Adds labeled regions for better readability.
Ensure the following R packages are installed:
install.packages(c("sf", "tidyverse", "viridis", "stars", "ggrepel"))- Alexandria_population.tif: Population density raster file.
- Alexandria.shp: Shapefile containing administrative boundaries.
Run the R script to generate the population density map:
source("Alexandria_Population_Map.R")
