[R] savePlot error when type = "eps" or "wmf"
Paul Murrell
p.murrell at auckland.ac.nz
Mon Apr 20 07:03:16 CEST 2009
Hi
jimdare wrote:
> Hello,
>
> When I use savePlot(filename="xy",type="eps") or
> savePlot(filename="xy",type="wmf") , I get the following error:
>
> Error in grid.Call("L_textBounds", as.graphicsAnnot(x$label), x$x, x$y, :
> Polygon edge not found (zero-width or zero-height?)
>
> This doesn't occur when I change the type to "jpeg" or "bmp". Can anyone
> explain what is going on and how I can fix it? Your help is much
> appreciated,
The error message says it all: a calculation is being performed to find
the edge of a polygon (from a grobX() or grobY() call?), but the polygon
has zero width or zero height so the calculation is floundering. We
need to see the code that did the drawing to tell you more.
Paul
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
More information about the R-help
mailing list