# NOT RUN {
boxplot(gpa ~ gender, data = Simpson, col = "violet")
boxplot(gpa ~ sport, data = Simpson, col = "lightgreen")
# }
# NOT RUN {
library(ggplot2)
ggplot2::ggplot(data = Simpson, aes(x = gender, y = gpa, fill = gender)) +
geom_boxplot() +
facet_grid(.~sport) +
theme_bw()
# }
Run the code above in your browser using DataLab