R codes used to plot the graph
png plots