>-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of >[EMAIL PROTECTED] >Sent: Friday, February 07, 2003 9:47 AM >To: Sundar Dorai-Raj; [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >Subject: Re: [R] Fw: Plotting in subareas using par(fig=) parameter > > >Sundar and Brian, >Thank you both. >Despite the oddly inverted command structure of par(new=TRUE) >when one wants plot a new plot without erasing an old one, it >works like a charm. It works so well that I have to remember >to put par(new=FALSE) to create a clean slate for new plots! REX > > SNIP >
Rex, To your point regarding the modifications to par() and as you might get more complex in those modifications, you might want to consider "wrapping" your code within the following two lines: op <- par(no.readonly = TRUE) ...your code... par(op) This sets 'op' to contain those parameters that you might modify in your code and then restores par() to the values that were present prior to your manipulation. This is contained in the examples and elsewhere in ?par. There is a caveat in the "Note" section of the ?par help page to be aware of in this situation. HTH, Marc Schwartz ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help
