[R] dotchart background color

Deepayan Sarkar deepayan at stat.wisc.edu
Wed Nov 17 20:15:22 CET 2004


On Wednesday 17 November 2004 12:09, Dean Sonneborn wrote:
> I'm creating a dotchart but the background color is gray. In fact,
> when ever I use the Lattice package the background is gray, which
> prints as black on my non-color printer. How do I change the
> background color to white? 

See ?trellis.device. Note that if you want to print stuff, you should 
use the postscript or pdf device, in which case you should 
automatically get what you want.

> I'm also plotting two groups and would 
> like to use circles and triangles as the plot characters.

If you are unhappy with what you get after reading ?trellis.device, you 
could supply the pch, e.g.

dotplot(..., pch = 1:2)

Deepayan




More information about the R-help mailing list