emLab Study Club code review
This repository contains demonstration materials for teaching code review practices. It includes R scripts that work with the Palmer Penguins dataset to create various visualizations.
code-review-demo/
├── code/ # R scripts for data analysis and visualization
├── figures/ # Output directory for generated plots
├── README.md
└── LICENSE
The code/ directory contains 11 R scripts:
00_demo.R- Demo script showing bill dimensions scatter plot01_group.Rthrough10_group.R- Group practice scripts with different visualizations
Each script:
- Loads the Palmer Penguins dataset
- Performs data manipulation
- Creates a unique plot
- Saves the plot to the
figures/directory
You'll need R installed with the following packages:
install.packages("ggplot2")
install.packages("palmerpenguins")To run any script:
Rscript code/00_demo.ROr in RStudio, open the script and click "Source" or press Ctrl+Shift+S (Cmd+Shift+S on Mac).
This repository is designed for hands-on practice with:
- Creating a new branch
- Making code changes
- Committing changes with meaningful messages
- Opening a pull request
- Reviewing code changes
- Merging changes into main
- Modify a plot: Choose one of the group scripts and change the plot aesthetics (colors, themes, labels)
- Add a new analysis: Create a new script with a different visualization
- Fix an issue: Introduce a small bug and practice identifying it in review
- Improve code: Refactor code to improve readability or efficiency
MIT License - see LICENSE file for details