R code for literature seminar talk on 11/15/2013