R code for plots and plots in PNG format are added