[R] Handling of par() with variables

2010-06-04 Thread Steffen Uhlig
Hello! In order to plot multiple graphs with the same set-up I use the following code-structure: ### # storing old parameter set oldpar - par(no.readonly=T) #copying old parameter set newpar - par(no.readonly=T) #adjusting parameters

[R] Handling of par() with variables

2010-06-04 Thread Steffen Uhlig
Hello! In order to plot multiple graphs with the same setup I use the following code-structure: ### # storing old parameter set oldpar - par(no.readonly=T) #copying old parameter set newpar - par(no.readonly=T) #adjusting parameters

Re: [R] Handling of par() with variables

2010-06-04 Thread Joris Meys
I think you misunderstand the working of par(). If you set new parameters, R allows you to store the old parameters simultaneously. Take a look at : par(no.readonly=T) oldpar - par(mar=c(1,1,1,1),tck=0.02) par(no.readonly=T) par(oldpar) par(no.readonly=T) So your line : newpar -