R code and plots for EDA HW1