R Shiny dashboard for tracking CFHF agroecology farmer training practices across Kenya Shiny dashboard + data pipeline for visualizing farmer training assessment data from the CFHF project in Kenya
# CFHF: Agroecology Farmer Training Dashboard
> **Conservation Food & Health Foundation (CFHF) Project** — An R-based data pipeline and interactive Shiny dashboard for monitoring agroecology farmer training assessments across Kenya. This project was funded by CFHF grant for 2025/2026 year
---
## Table of Contents
- Overview
- Project Structure
- Features
- Data Sources
- Prerequisites
- Installation
- Usage
- Dashboard Tabs
- Summary Tables
- Map Visualization
- County Coverage
- Contributing
---
## Overview
This project provides a suite of R tools for analyzing and visualizing baseline and follow-up assessment data from the **CFHF Agroecology Farmer Training Programme**. It spans 5 workshop training days covering Soil Health, Pest Management, Nutrition & Value Addition, Livestock, and Climate & Agroforestry — tracking what practices farmers are applying across 13 counties in Kenya.
**Key outputs include:**
- An interactive **Shiny Dashboard** for real-time, filter-driven exploration
- A **Leaflet Map** showing farmer distribution by organization and county
- Publication-quality **gt summary tables** for reporting
- A unified **data pipeline** that stacks and cleans all practice datasets
---
## Project Structure
```
CFHF/
├── app.R # Shiny dashboard (main application)
├── data_pipeline.R # Data loading, cleaning & stacking script
├── summary_tables.R # Publication-quality gt tables
├── kenya_map.R # Leaflet interactive map
│
├── Data/
│ ├── CFHF.Data.Stacked.xlsx # Primary stacked dataset (multi-sheet)
│ ├── CFHF.Data_Normal.xlsx # Original wide-format data
│ ├── CFHF.Data_Classified.xlsx # Classified/categorized data
│ ├── CropsGrown.xlsx # Crop adoption data (binary 0/1)
│ └── DIVFEEDCROP.xlsx # Diversity & feed materials data
│
└── outputs/
└── kenya_farmer_map.html # Exported interactive map
```
---
## Features
| Feature | Descriptio …