Skip to content

R-beta: problem with graphics parameter "fin"

3 messages · Thomas Lumley, Albrecht Gebhardt

#
Hi,

I have the following problem (with R 0.61.3 an Linux, and a new and empty
workspace)
Error: attempt to set invalid value for graphics parameter "fin".
[1] 6.992034 6.990803

but now:
it works.

It seems, that if I set oldpar$fin to values greater than listed above
(6.9920...) it stops to work:
Error: attempt to set invalid value for graphics parameter "fin".

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

It occurs also with no active x11() device (postscript() instead).

What's the matter? I tried the same on the DEC Alpha (but with R 0.61.1
!!) and it didn't happen. 

Sorry, but I have no more R 0.61.1 available on Linux, so I could not 
check it with an earlier version.



Albrecht


PS:
It does not appear with the R snapshot (from May 16).

------------------------------------------------------------------------------
Albrecht Gebhardt          email: albrecht.gebhardt at uni-klu.ac.at
Institut fuer Mathematik   Tel. : (++43 463) 2700/837
Universitaet Klagenfurt    Fax  : (++43 463) 2700/834
Villacher Str. 161         WWW  : http://www-stat.uni-klu.ac.at/~agebhard
A-9020 Klagenfurt, Austria
------------------------------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Sun, 24 May 1998, Albrecht Gebhardt wrote:
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
1 day later
#
On Sun, 24 May 1998, Thomas Lumley wrote:

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