[R] grid background color

David Barron david.barron at said-business-school.oxford.ac.uk
Mon Jun 16 10:08:18 CEST 2003


Either use lset(col.whitebg()) to change a range of settings, including the
background colour to white.

Or, if you really only want to change the background colour, something like

b <- trellis.par.get("background")
b$col <- "white"
trellis.par.set("background",b)

should do the trick.

David

----- Original Message -----
From: "Ron Ophir" <lsophir at wisemail.weizmann.ac.il>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, June 16, 2003 8:27 AM
Subject: [R] grid background color


> Dear all,
> I am trying to run cloud function in lattice library under r-1.7, and I
wlways get gray background. I've tried to chang it by set
"...par.box=list(col="white")"
> or by gpar(background="white") but no result.
> How do i do it?
> Thanks in advance,
> Ron
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
>




More information about the R-help mailing list