plot3.r and plot3.png

code for plot3 and output