This project is an interactive R Shiny dashboard designed to visualize and analyze the Minimum Dietary Diversity (MDD) Scores across health facilities in Mombasa, Kenya. It serves as a tool for health officials to identify nutritional gaps and monitor dietary diversity trends among vulnerable populations.
# Mombasa Health & Nutritional Diversity (MDD) Tracker
### Geospatial Dashboard for Public Health Analysis
This project is an interactive R Shiny dashboard designed to visualize and analyze the **Minimum Dietary Diversity (MDD) Scores** across health facilities in Mombasa, Kenya. It serves as a tool for health officials to identify nutritional gaps and monitor dietary diversity trends among vulnerable populations.
**View the Live Interactive Dashboard**
---
## Project Overview
The dashboard provides a spatial and statistical breakdown of nutritional data, allowing users to:
- **Visualize Clusters:** Identify hotspots of high or low MDD scores using Leaflet map clustering.
- **Analyze Trends:** Compare sub-counties (Mvita, Kisauni, Nyali, etc.) using automated boxplots and bar charts.
- **Export Data:** Filter specific nutritional ranges and export the custom datasets for offline reporting.
---
## Technical Stack
* **Language:** R
* **Framework:** Shiny (UI/Server architecture)
* **Geospatial:** `sf` (Simple Features), `leaflet` (Interactive mapping)
* **Data Visualization:** `ggplot2`, `plotly` (Interactive charts)
* **Data Manipulation:** `dplyr`, `tidyr`
* **Deployment:** Published via `shinyapps.io`
---
## đź“‹ Execution Steps
### 1. Data Cleaning & Preparation
- Processed raw health facility data containing Latitude, Longitude, and MDD scores.
- Standardized Sub-County naming conventions (e.g., ensuring "Mvita" matches across all records).
- Verified Coordinate Reference Systems (CRS) for accurate spatial buffering.
### 2. UI/UX Design
- Implemented a **Sidebar Layout** with dynamic filters for Sub-Counties and MDD score ranges.
- Used `shinythemes` (Flatly) for a clean, professional "Public Health" aesthetic.
- Developed a **Tabbed Interface** to separate the Map View, Statistical Trends, and the Raw Data Explorer.
### 3. Reactive Programming Logic
- Built a **Reactive Data Pipeline** where the map and charts update instantly as the user moves the MD …