[Rd] persp + postscript/pdf (PR#1419)
ripley@stats.ox.ac.uk
ripley@stats.ox.ac.uk
Sat, 30 Mar 2002 12:35:37 +0100 (MET)
This is rather a documentation bug which means you are misusing persp().
The shading is done in the colour given by the `col' argument, and that
defaults to NULL. What NULL means is undocumented, but it appears to mean
par("bg"), and that is transparent on postscript/pdf. Set a value for
`col' and it works as you expect.
I've changed the default to col = "white" and also ensured that
transparent colours are treated as transparent.
On Thu, 28 Mar 2002 leisch@ci.tuwien.ac.at wrote:
> persp(outer(1:5, 1:5), shade=0.1)
>
> looks nice on the screen, but
>
> postscript()
> persp(outer(1:5, 1:5), shade=0.1)
> dev.off()
>
>
> gives an all black surface.
> same when using the pdf() device. has already been like that in 1.4.0.
>
> .f
>
>
>
>
> --please do not edit the information below--
>
> Version:
> platform = i686-pc-linux-gnu
> arch = i686
> os = linux-gnu
> system = i686, linux-gnu
> status = Under development (unstable)
> major = 1
> minor = 5.0
> year = 2002
> month = 03
> day = 28
> language = R
>
> Search Path:
> .GlobalEnv, package:ctest, Autoloads, package:base
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._