Logo Lanfrica

sylvester-onyango-wanina/Population-Density-Visualization

Domaine:

geospatial
Créateur:
syl
Hôte:
Kenya county population analysis & mapping using R — raster processing, zonal statistics, and choropleth visualization. # 🗺️ Kenya Population Data Visualization with R > A reproducible R workflow for processing, analyzing, and visualizing population distribution data across Kenya's counties — integrating raster population grids with administrative shapefiles to generate zonal statistics and publication-ready maps. --- ## 📋 Table of Contents - Overview - Workflow - Prerequisites - Installation & Setup - Usage - Project Structure - Key Outputs - Data Sources - Contributing - License - Author --- ## Overview This project provides a complete end-to-end geospatial analysis pipeline in R for exploring population patterns at the county and sub-county levels in Kenya. The workflow combines: - **Administrative boundaries** (counties and sub-counties) as vector shapefiles - **Population raster data** (e.g., WorldPop 100m grids) for spatial distribution - **Health facility locations** to support accessibility and coverage analysis The pipeline handles CRS harmonization, raster clipping, zonal statistics computation, and produces clean choropleth maps suitable for reports and dashboards. --- ## Workflow The analysis follows a structured 9-step pipeline: | Step | Stage | Description | |------|-------|-------------| | 1 | **Import Data** | Load county/sub-county boundaries, population raster, and health facility points | | 2 | **Data Quick Checks** | Inspect structure with `View()`, `summary()`, `names()`, and `st_crs()` | | 3 | **Filter / Subset County** | Isolate target county from the national boundaries layer | | 4 | **Check CRS** | Verify coordinate reference systems across all layers | | 5 | **Reproject Population Raster** | Align raster CRS to match the shapefile's projection | | 6 | **Clip Population to County** | Mask the raster to the county boundary extent | | 7 | **Zonal Statistics** | Compute sum and mean population per administrative unit | | 8 | **Merge Results to Shapefile** | Join statistical outputs back to the spatial layer | | 9 | **Create Population Map** | R …

Licenses