R-beta: Problem with graphics parameter 'fin'

Jim Lemon (ggl@onaustralia.com.au)
Tue, 26 May 1998 12:42:33 +0000

Date: Tue, 26 May 1998 12:42:33 +0000
From: Jim Lemon <ggl@onaustralia.com.au>
To: r-help@stat.math.ethz.ch
Subject: R-beta: Problem with graphics parameter 'fin'


I tried this:

 [1] 6.990803 6.997416

on my system (Linux and R-0.61.2) and received no error message, as also
reported by Thomas Lumley.  I then tried to create the error,
successfully, by:

Error: attempt to set invalid value for graphics parameter "fin".

Thinking that I might be able to finesse the problem by altering the
..First function to set x11() slightly larger, which can then accept the
new, larger value, I found that 'par' played catch-up:

> dev.off()
> x11(width=7.1,height=7.1)
> par("fin")
[1] 7.097533 7.090715

However, you may get around it by including a


assignment in .First after the call to x11(), which might allow you to
read and reset 'fin' without problems.  Unfortunately, I can't test it
conclusively, as I don't get the error.

Your conjecture about the rounding error is probably correct, as when I
incremented the value of 'oldfin' by one in the 6th decimal place, I got
the error.


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