Add R code and plots per project requirements