Author: Sami Kader-Yettefti
Repository: r-101-grade-analysis
The goal of this lab is to analyze a real-world collection of grades obtained by students during a semester. The analysis explores performance patterns, attendance issues, and correlations using R and data visualization.
This lab is part of a course assignment focused on data exploration and visualization in R. It answers a series of structured questions using a dataset of student grades and groups.
grades.csv— Dataset containing student IDs, group info, and grades.lab.qmdorlab.Rmd— Source document with all code and analysis.output.html— Rendered version of the lab with plots and tables.README.md— Project overview and instructions.
RandRStudiotidyverse: For data manipulation and plottingvroom: Fast CSV importhere: File path managementknitr: Nicely formatted tablesstringr: String utilitiesquartoorrmarkdown: Reproducible report generation
git clone https://github.com/kaderrsami/r-101-grade-analysis
cd r-101-grade-analysis-
Open in RStudio Open the .Rproj file for a project-scoped environment.
-
Install Dependencies install.packages(c("vroom", "ggplot2", "dplyr", "tidyr", "knitr", "stringr", "here"))
-
Run or Render the Lab Report quarto::quarto_render("lab.qmd") # for Quarto
rmarkdown::render("lab.Rmd") # for R Markdown
🔍 Analysis Overview
| Question | Focus |
|---|---|
| Q1 | Load data |
| Q2–3 | Summary stats + missing exam grades |
| Q4 | Distribution of exam grades |
| Q5–6 | Student count per group |
| Q7 | Grade distribution by group (bar and boxplot) |
| Q8–9 | Exam attendance per group |
| Q10–12 | Missing grades per student |
| Q13–17 | Missing MCQ analysis |
| Q18 | Correlation between MCQ attendance and exam performance |
📊 Sample Visualizations Includes:
Bar plots
Histograms
Box plots
Faceted charts
Dual-axis comparisons
All charts are made with ggplot2 and dynamically generated from the dataset.
📝 License & Contributions This lab is a personal academic project. If you find ways to improve the analysis, feel free to fork the repo and submit a pull request.
📌 Note You can view the rendered HTML file locally or host it on GitHub Pages if desired.