[Rd] PS & box(col=0) (PR#1114)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Fri, 12 Oct 2001 11:05:05 +0200 (MET DST)


On Thu, 4 Oct 2001 pgilbert@bank-banque-canada.ca wrote:

> The postscript  driver in R-devel seems to choke on box(col=0). This is
> not a problem in R-1.3.1.

It was not a problem because 1.3.1 gave the wrong answer!  In 1.3.1 on a
postscript device, the background was not painted if white (the default),
but col=0 did paint white.  So the background colour was really
transparent, but col=0 was white.

In 1.4.0 white and transparent are distinct, and you can now set
transparent via an inline `col' setting.  (It was only allowed for direct
setting by par when you made the report.)

The issue was not col=0, but the colour that corresponded to.  Plotting in
col=0 is a lot less useful now, since it often does nothing.

>
> R : Copyright 2001, The R Development Core Team
> Version 1.4.0 Under development (unstable) (2001-09-22)
> ...
> Type `q()' to quit R.
>
> > plot(1:10, 1:10)
> > box(col=0)
> > postscript(file="zot.ps")
> > plot(1:10, 1:10)
> > box(col=0)
> Error in box(col = 0) : invalid value specified for graphics parameter
> "col".
> >
>
> Paul Gilbert
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel 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-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley@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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._