Re: [R] how to print a colored plot in black/white?

From: Joshua Wiley <jwiley.psych_at_gmail.com>
Date: Wed, 23 Jun 2010 10:31:52 -0700

Dear Marius,

>From the documentation (see ?trellis.device):

"Note that this only applies to the initial choice of colors, which can be overridden using 'theme' or subsequent calls to 'trellis.par.set' (and by _arguments supplied directly in high level calls for some settings_)." [emphasis added]

xyplot() is a high level function; so my guess is that it overrides the colour set in trellis.device().

HTH, Josh

On Wed, Jun 23, 2010 at 10:14 AM, Marius Hofert <m_hofert_at_web.de> wrote:
> Dear expeRts,
>
> shouldn't this...
>
> x <- 1:10
> myplot <- xyplot(x~x,col="red")
> trellis.device(postscript,color=FALSE,file="plot.ps")
> print(myplot)
> dev.off()
>
> ... give a black/white plot?
>
> Cheers,
>
> Marius
>
> ______________________________________________
> R-help_at_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.
>

-- 
Joshua Wiley
Ph.D. Student
Health Psychology
University of California, Los Angeles

______________________________________________
R-help_at_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.
Received on Wed 23 Jun 2010 - 17:35:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Jun 2010 - 18:10:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive