finished plot6.r and plot6.png