Re: R-beta: problem with graphics parameter "fin"

Albrecht Gebhardt (agebhard@zidsrv.sci.uni-klu.ac.at)
Tue, 26 May 1998 08:40:34 +0200 (MET DST)


Date: Tue, 26 May 1998 08:40:34 +0200 (MET DST)
From: Albrecht Gebhardt <agebhard@zidsrv.sci.uni-klu.ac.at>
To: Thomas Lumley <thomas@biostat.washington.edu>
Subject: Re: R-beta: problem with graphics parameter "fin"
In-Reply-To: <Pine.LNX.3.96.980524125212.16979C-100000@buffy>
Message-Id: <Pine.OSF.3.93.980526083514.3582A-100000@alpha2-stat.sci.uni-klu.ac.at>



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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._