Figure margins too large

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Wed, 12 Jan 2000 08:45:27 +0100 (MET)


>>>>> "PaulG" == Paul Gilbert <pgilbert@bank-banque-canada.ca> writes:

    PaulG> I seem to remember an error like this being mentioned before,
    PaulG> but if it wasn't:

    >> zz <- density(rnorm(100))
    >> plot(zz)
    PaulG> Error in plot.new() : Figure margins too large

    >> version
    PaulG> _
    PaulG> platform sparc-sun-solaris2.6
    PaulG> arch     sparc
    PaulG> os       solaris2.6
    PaulG> system   sparc, solaris2.6
    PaulG> status
    PaulG> major    0
    PaulG> minor    90.1
    PaulG> year     1999
    PaulG> month    December
    PaulG> day      15
    PaulG> language R

It means what it says : The figure margins are too large
and there's no room for the plot at all.

It must be that you have 
  - large fonts {large par("cex"), or large "rastersize" with postscript ...)
and/or
  - large  par("mar")
and/or
  - too small device.

I can reproduce the error message with
 
  postscript(file="/dev/null", height= 1)
  plot(1)

More "fun" is to

     x11()
     plot(1)
and resize the device window {repeatedly calling  plot(1)}
until the plot outline isn't drawn any more.
At the point you get (appropriately) the above error message.

Martin Maechler <maechler@stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._