R-beta: problem with graphics parameter "fin"

Albrecht Gebhardt agebhard at zidsrv.sci.uni-klu.ac.at
Tue May 26 08:40:34 CEST 1998



On Sun, 24 May 1998, Thomas Lumley wrote:

> On Sun, 24 May 1998, Albrecht Gebhardt wrote:
> > 
> > I have the following problem (with R 0.61.3 an Linux, and a new and empty
> > workspace) 
> > 
> > > oldpar<-par()
> > > par(oldpar)
> > Error: attempt to set invalid value for graphics parameter "fin".
> > > oldpar$fin
> > [1] 6.992034 6.990803
> > ...... 
> 
> I don't have this problem (Red Hat Linux, R0.61.1) unless I deliberately
> set par$fin greater than its default value. It may depend on the screen
> resolution. 
> 
> par$fin is the size of the plotting region in inches.  It must be less
> that the size given when you open the x11() window.  If you look at
> help(x11) it gives width and height arguments that default to 7inches. You
> can't set the plotting region bigger than this, which explains why par$fin
> has to be less than 7.

The problem is that R itself sets par$fin to a value greater than the
allowed one, maybe an internal rounding error?

Now I' have trouble with many graphics functions, which store the original
par() values, do something, and attempt to restore the original settings
afterwards from the saved ones.

Albrecht


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list