Look at the argument "new" under ?par. Probably better way is to use the following sequence:
plot(...) # whatever your first plot is. lines(...) # add line to the existing plot. points(...) # add points to the existing plot. There are many other functions that add to the existing plot. HTH, Andy > -----Original Message----- > From: Josep Perarnau [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2003 12:37 PM > To: [EMAIL PROTECTED] > Subject: [R] plotting in the same figure > > > Hello, > > Do you know if it's possible to create a plot as in matlab > with the options hold on and hold off? > For example I want to plot in the same figure the theoric cdf > of the normal distribution and the empiric cdf from the raw data. > > Thank you, > Josep. > > ______________________________________________ > [EMAIL PROTECTED] mailing list > https://www.stat.math.ethz.ch/mailman/listinfo> /r-help > ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help