finished plot3.R and produced plot3.png