Added R code and png files