Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.44.0305060937570.14252-100000@gannet.stats>
Date: 2003-05-06T08:40:32Z
From: Brian Ripley
Subject: xyplot (lattice), strip.default
In-Reply-To: <9516.030506@eimb.ru>

On Tue, 6 May 2003, Wladimir Eremeev wrote:

> 2. I'd like to produce a .png file with graphs without drawing them on
> the screen.
> 
> I try:
> png(filename = "Rplot.png", width = 480, height = 1024, pointsize = 12,
>          bg = "white");
> 
> trellis.device(device=getOption("png"),
>                color = FALSE,
>                bg = "white" );
> 
> xyplot.... [see above]
> 
> But I get the error message:
> 
> Error in trellis.device(device = getOption("png"), color = FALSE, bg = "white") :
>         couldn't find function "device.call"
> 
> Where's the problem?

Thare is no option "png".  Look at the help for trellis.device to see what 
you should be using as a `device' argument: it even lists how to use the 
png() device.

> I use R 1.7.0 and Windows NT 4.0 workstation.

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595