fixed error in plot3.R