R code to create plots added along with graphs

Added four R files that create plots 1-4.