[R] grey scale graphs

David Winsemius dwinsemius at comcast.net
Wed Feb 2 16:40:30 CET 2011


On Feb 2, 2011, at 10:26 AM, Sebastián Daza wrote:

> Hi everyone,
> Does anyone know how to get "black and white theme" (grey scale,, I  
> would say) graphs using lattice or ggplot2, as it is shown in this  
> webpage: http://lmdvr.r-forge.r-project.org/figures/figures.html?
>
> I am using Sweave, and I cannot get that color configuration.
> I have added the following option: trellis.device(color=FALSE) but I  
> got a pdf file with color graphs.

Maybe you should use postscript as a device for which the default is  
for color=FALSE.

?trellis.device

>
> Thank in advance.
> -- 
> Sebastián Daza
> sebastian.daza at gmail.com
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list