R-beta: problem with graphics parameter "fin"

Thomas Lumley thomas at biostat.washington.edu
Sun May 24 21:58:42 CEST 1998


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
> 
> but now:
> 
> > oldpar$fin <- c(6.99,6.99)
> > par(oldpar)
> 
> it works.
> 
> It seems, that if I set oldpar$fin to values greater than listed above
> (6.9920...) it stops to work:
> 
> > oldpar$fin <- c(7,7)
> > par(oldpar)
> Error: attempt to set invalid value for graphics parameter "fin".
> 
> and again
> 
> > oldpar$fin <- c(6.992034,6.990803)
> > par(oldpar)
> Error: attempt to set invalid value for graphics parameter "fin".
> 
> What does the par() values depend on? the X Server? 
> It happens both on an 8bit and 24bit XFree display. 
> 

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.


Thomas Lumley


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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