[R] lattice problems under Win2K and R-1.4.0

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 9 18:29:35 CET 2002


This is known and oft reported (see the archives).  It's a problem
with grid 0.5, which starts up with a blank page.

On Wed, 9 Jan 2002, Thomas Stockton wrote:

> I'm having problems copying and saving lattice graphs using R-1.4.0 under
> Win2k. It seems I've see this alluded to recently in R-help.
>
> If I do the following example:
>
> > data(quakes)
> > xyplot(long ~ lat , data = quakes)
>
> And then try to copy or save the graph as either a metafile or bitmap or if
> I use any of the bitmap/metafile devices via (for example)
>
> > png(file="mygraph.png")
> > data(quakes)
> > xyplot(long ~ lat , data = quakes)
> > dev.off()
>
> I get the following type of error:
> Error in grid.newpage() : A png file can store only one figure.
>
> or for a metafile:
>
> Error: A metafile can store only one figure.
>
> This happens using R-1.4.0 installed using SetupR.exe and under R-1.4.0 I
> make myself.
>
> Any help with this is much appreciated.

Read on in the archives for what does work (any means of plotting on
screen and then copying).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list