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.