[Rd] Problems with example(Grid) in grid package

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Oct 24 22:41:04 CEST 2005


On Tue, 25 Oct 2005, Paul Murrell wrote:

> hadley wickham wrote:
> > I've also noticed the behaviour of grid.rect() has changed in 2.2.0.
> > Before the fill defaulted to transparent, but now it defaults to
> > white.
>
>
> The initial value of the 'gp' settings for the ROOT grid viewport has
> changed in 2.2.0 (see grid/doc/changes.txt).  Before it defaulted to
> transparent, but now it defaults to whatever the 'bg' is for the current
> device (on some, e.g., png() this is "white", though I'm not sure why
> right now)

Because many (maybe even most) png viewers do not handle transparency 
correctly.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list