library(dplyr)
library(mosaic)
library(ggplot2)
library(readr)

# Set seed value
set.seed(76)

# Note you will need to change this line to whatever loads the data for you:
grades <- read_csv("../PS/grades.csv")

LC1: Visuzalization

Both the following get the job done, but when using the boxplot:

  • Pro: You can compare both groups with a single horizontal line
  • Con: You lose information about the shape of the distribution
ggplot(data=grades, aes(x=even_vs_odd, y=final)) +
  geom_boxplot()