[R] controlling colour in Trellis histogram
deepayan at stat.wisc.edu
Fri Oct 1 16:58:56 CEST 2004
On Friday 01 October 2004 09:25, Chuck Cleland wrote:
> Does this help?
> mydata <- data.frame(OPTIMISM =
> PARENTS = rep(c("Both Deceased", "One
> Deceased", "Both Alive"), c(4,5,6)))
> trellis.device(width=7, height=5, new = FALSE, col = FALSE, bg =
The bg="white" is redundant if color=FALSE.
Incidentally, if color=TRUE, setting bg="white" is IMO bad practice
(although it seemed like a good idea at the time), since it creates
settings with a white background while the other colors are only
suitable for a dark background. To make it more difficult for users to
achieve this, the 'bg' argument has been dropped from trellis.device in
More information about the R-help