[R] help with graphics

Prof Brian Ripley
Sat, 02 Aug 2003 11:29:11 -0000

You need to explicitly print lattice plots: see ?Lattice.

On Thu, 31 Jul 2003, Erwan BARRET wrote:

> I'd like to use lattice to make graphics under conditional structure
like :
> if (TRUE) { barchart(....)
> dev.print(png, file = "image1.png", width = 600)
> }
> but there's nothing in the output file. It seems that it's too long
to
> print graphic into the graphical output and the saved file is a blank
> picture.

Speculation!  You haven't asked for anything to be printed.

> it works if I do that without the conditionnal structure.
> it doesn't work if I source a batch file
> can you help me?

--
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