Re: [R] unexpected par('pin') behaviour

From: Martin Maechler <>
Date: Fri 15 Jul 2005 - 23:00:12 EST

>>>>> "MM" == Martin Maechler <>
>>>>> on Fri, 15 Jul 2005 14:36:16 +0200 writes:


    MM> which I can simplify to

    MM> layout(matrix(1:42,7,6))
    MM> par("pin")

    MM> ## [1] 0.2918620 -0.2974408 --- when using x11() "default"

    MM> clearly a bug in layout() {which I'll file}

exploring more before filing a bug report,

I've now seen that this *NO BUG* of layout() but rather of the ``design bug'' of old-style graphics which bites here.

    MM> and it seems to me, one that is not shared by     MM> par(mfrow= / mfcol=) settings.

That's wrong, since

  ## [1] 1.0470855 -0.1047263

and when plot() you get message about margins being too wide.

Only after something like

  par(mar= rep(1,4))

you get both valid "pin" and can plot properly.

That's nothing new and not really astonishing, ...

Martin Maechler, ETH Zurich mailing list PLEASE do read the posting guide! Received on Fri Jul 15 23:08:59 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:45 EST