[R] producing colour .eps output
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Oct 11 19:04:09 CEST 2008
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, 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
More information about the R-help
mailing list