Interactive R Shiny dashboard visualizing Kenya's health and demographic trends using World Bank Development Indicators data.
# Kenya Health & Demographic Dashboard
An interactive R Shiny dashboard exploring Kenya's health and demographic trends using **World Bank Development Indicators (DS2)** data. The dashboard covers population dynamics, mortality and life expectancy, disease burden, healthcare capacity, and nutrition/WASH access — with a built-in data explorer for browsing any indicator directly.
🔗 **Live demo:**
madhushani-perera.shinyapps…
---
## Features
- **Demographics** — population totals, growth rate, urban/rural split, age structure, fertility and birth/death rates
- **Mortality & Life Expectancy** — total/male/female life expectancy, infant, under-5, neonatal, and maternal mortality
- **Disease** — TB, HIV, and malaria incidence trends
- **Healthcare** — immunisation coverage (measles, DPT), hospital beds, physicians, nurses/midwives, and health expenditure
- **Nutrition & WASH** — child stunting/wasting, undernourishment, and access to clean water and sanitation
- **Data Explorer** — search, filter by year range, view summary statistics, and download any indicator as CSV
Each section includes interactive Plotly charts and summary statistic tables (min, max, mean, median, % change) powered by DT.
---
## Built With
- R Shiny & shinydashboard
- plotly — interactive charts
- DT — interactive data tables
- dplyr / tidyr — data wrangling
- shinyWidgets — enhanced UI inputs
---
## Data Source
Data is sourced from the World Bank's World Development Indicators (WDI), filtered to Kenya (`KEN`), covering indicators from 1960–2024.
---
## Run Locally
Clone the repo and make sure `Kenya_wdi.csv` is in the same folder as `app.R`, then run:
```r
install.packages(c("shiny", "shinydashboard", "plotly", "DT",
"dplyr", "tidyr", "shinyWidgets"))
shiny::runApp()
```
---
## Repository Structure
```
kenya-health-dashboard/
├── Kenya_wdi.csv # World Bank WDI data, filtered to Kenya
├── LICENSE
├── README.md
└── app.R # Shiny ap …