This project provides an interactive analysis of the Environmental Performance Index (EPI) using decision tree modeling. It helps explore how different environmental indicators relate to a country's overall EPI score and classifies countries into performance categories (Low/Medium/High).
- Interactive Decision Tree: Visual representation of how environmental indicators predict EPI classes
- Searchable Country Data: Complete dataset with filtering and sorting capabilities
- Performance Metrics: Model accuracy and prediction results
- Responsive Design: Works well on different screen sizes
- R (>= 4.0.0)
- R packages: tidyverse, rpart, rpart.plot, DT
- R Markdown (for report generation)
- Clone this repository
- Install required R packages:
install.packages(c("tidyverse", "rpart", "rpart.plot", "DT", "rmarkdown"))
- Run the analysis:
Rscript -e "rmarkdown::render('analysis_report.Rmd')" - Open
analysis_report.htmlin your web browser to view the interactive report
analysis_report.Rmd: Main analysis file with decision tree model and visualizationsData/epi2024_data.csv: Dataset containing country-level environmental indicators and EPI scoresbiodiversity_analysis_clean.R: Supporting R script with data processing functionsLICENSE: Apache 2.0 license file
- Explore the Decision Tree: Understand how environmental indicators predict EPI classes
- Search and Filter: Use the search box and column filters to find specific countries
- Sort Data: Click on column headers to sort the country data
- Compare Predictions: Examine actual vs. predicted EPI classes
- EPI 2024 Dataset
- Environmental indicators include:
- BDH: Biodiversity & Habitat
- ECS: Ecosystem Services
- FSH: Fish Stocks
- APO: Air Pollution
- AGR: Agriculture
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request or open an issue for any suggestions or bug reports.