I don't see anywhere you asked for colour, and postscript() is regarded as a 'print device' so the default is monochrome.

See ?trellis.device and the discussion of themes there: AFAICS you want to set a colour theme.

On Sat, 11 Oct 2008, RICHARD PITMAN wrote:

I am using the following code to produce a graphic:

library(lattice)
postscript("figs%03d.eps", width = 6.0, height = 6.0,
           horizontal = FALSE, onefile = FALSE, paper = "special")
xyplot(cases~yr|agrp*sex,data=data[tse==0 & expgrp==1,],
      groups=source, pch=".", type="l",
       main="Exposure group 1, time since entry 0")

The resulting figure is in black and white and I can not seem to find a way to get colour output.

Any pointers gratefully received.

TIA

Richard

--
Brian D. Ripley,                  [EMAIL PROTECTED]
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
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to