library(ggplot2) # R package for data visualization
# read in data
dat <- read.csv(here::here("teaching",'2024-01-12-syllabus-adv-multivariate-esrm-6553', 'Lecture03', 'Code', 'DietData.csv'))
dat$DietGroup <- factor(dat$DietGroup, levels = 1:3)
head(dat) Respondent DietGroup HeightIN WeightLB
1 1 1 56 140
2 2 1 60 155
3 3 1 64 143
4 4 1 68 161
5 5 1 72 139
6 6 1 54 159













