| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
A comprehensive R-based project that analyzes the Gapminder dataset (1952โ2007) to explore global trends in life expectancy, GDP per capita, and population. The analysis produces a suite of 12 visualizations, fits a regression model, and renders an HTML report.
This repository contains everything needed to:
Ideal for students, educators, data scientists, and anyone interested in global development metrics.
Each plot is saved to gap-<index>.png and displayed in the R session.
The main script auto-installs any missing packages.
Clone this repository:
git clone https://github.com/yourusername/gapminder-analysis.git
cd gapminder-analysisInstall R (if not already).
(Optional) Copy .env.example to .env to customize environment variables.
bash scripts/run_gapminder.shAll 12 charts will print and save as gap-1.png โฆ gap-12.png.
bash scripts/render_report.shThis produces Gapminder_report.html.
make reportEquivalent to running analysis and report steps.
. โโโ Gapminder_Analysis.R # Main R script โโโ Gapminder_Analysis.Rmd # RMarkdown report โโโ Gapminder_report.html # Generated HTML report โโโ gap-*.png # Saved plot images โโโ scripts/ โ โโโ run_gapminder.sh # Runs the analysis script โ โโโ render_report.sh # Renders the RMarkdown โโโ Makefile # Make targets for automation โโโ Dockerfile # Container definition โโโ docker-compose.yml # Compose for containerized run โโโ .env.example # Sample environment config โโโ README.md # This file
scripts/run_gapminder.sh Runs Gapminder_Analysis.R to produce and save all plots.
scripts/render_report.sh Renders Gapminder_Analysis.Rmd to Gapminder_report.html.
Makefile
Build and run in a container:
docker-compose up --buildThis will:
All files are shared via a bind mount.
Gapminder dataset via R package:
install.packages("gapminder")R Packages: see CRAN for ggplot2, dplyr, etc.
This project is licensed under the MIT License. See LICENSE for details.
| Back | FazBrowse Home | New Git URL |