Initial commit of plot2.R

Same as plot1.R but plot is changed to reflect plot 2 of assignment.