added comment to plot1.R and corrected some legend issue for plot4