R code file plots.R to generate 4 example plots