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

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Fri 15 Jul 2005 - 23:00:12 EST

>>>>> "MM" == Martin Maechler <maechler@stat.math.ethz.ch>
>>>>> on Fri, 15 Jul 2005 14:36:16 +0200 writes:

    ............

    MM> which I can simplify to

    MM> graphics.off()
    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

  postscript(paper="a4")
  par(mfrow=c(7,6))
  par("pin")
  ## [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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html 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