[R] Reset trellis plot backgroud color

John Fox jfox at mcmaster.ca
Fri Nov 30 06:05:55 CET 2001

Dear Richard,

At 04:51 PM 11/29/2001 -0500, Yang, Richard wrote:

>I run R on Windows 2000. When I load lattice library and plot some lme class
>objects, the graphic window displays a dark-green color. Graphics look ok on
>the screen, but lines and points become invisible whem I send the plot to a
>printer because of the background color. Are there ways to reset the
>background color? Both par(bg=) and windows() do not work. Any ideas?

You can open a trellis device directly, specifying color=F; see 
help(trellis.device). This is a good solution if you are satisfied with 
monochrome printed plots.

I hope that this helps,
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list