committed new changes to plot2.R