Skip to content

Background in lattice plots using dotplot()

2 messages · Achim Zeileis, Patrick Connolly

#
Patrick Connolly wrote:
Simply saying

R> trellis.device("x11", bg=0)

to open the trellis device doesn't work? That's at least, what I use to
get a white background. Then I usually change the colours and plotting
symbols with trellis.par.set().

Hope that helps
Z
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
platform i586-pc-linux-gnu
arch     i586             
os       linux-gnu        
system   i586, linux-gnu  
status                    
major    1                
minor    4.1              
year     2002             
month    01               
day      30               
language R   


I can't seem to get rid of the slightly green background when I use
dotplot().  It shows on the screen in the X11 device and when a
postscript file is viewed with the Gimp or GhostView.  Fortunately, it
is too faint to print on a Xerox colour printer.

However, if I attempt to make a monochrome bitmap file either using
bitmap(type = "pngmono") or converting a postscript file, it comes up
(and prints) as a very noticeable grey.  I've tried specifically
setting bg to "white" in every place I can think of, but without
success.

The problem doesn't appear when using bwplot() which I'd have thought
had a lot in common.

Has anyone experience with such a problem?