Re: [R] OT: 3d surfaces with transparency

From: Ben Bolker <>
Date: Wed, 12 Dec 2007 22:09:48 -0500

Hash: SHA1

Deepayan Sarkar wrote:

> On 12/8/07, Ben Bolker <> wrote:

>> Hash: SHA1
>> Deepayan Sarkar wrote:
>>> On 12/8/07, Ben Bolker <> wrote:
>>>> Hash: SHA1
>>>> I would be grateful if anyone had suggestions
>>>> about software that could (1) create 3D surface
>>>> plots, (2) handle transparency/alpha blending,
>>>> (3) generate output in some vector graphics format
>>>> that preserved the transparency. I could also
>>>> live with a combination of two programs, one
>>>> to generate the basic figure and another to
>>>> modify the output surface to a transparent
>>>> color (but preserving vector-ness).
>> [snip]
>>>> Any ideas???
>>> You could consider wireframe from lattice, but this has many caveats.
>>> For an example, see
>>> For that matter, whats wrong with persp?
>>> -Deepayan
>> I hadn't thought about the fact that transparency is easier
>> than it used to be (esp. with cairo device/PDF).
>> OK, next question: is there an easier way than the following
>> to create a 3D perspective plot with reference grids on some faces?
>> I can pull the 3D grid code out of the rgl or scatterplot3d
>> packages and reimplement it here, I guess ... another way to
>> hack this might (?) be to play with tick lengths?
> (I had been meaning to reply, but it slipped my mind.)
> I can't see an easy way to do this for persp, but it's technically
> possible (though not a one-liner) for cloud and wireframe. I can look
> into it if you think it will help.
> -Deepayan

  I managed to hack this up OK in persp, I can send it/post it if anyone is interested.

  If I find time I might try to hack persp to do the grids internally.

  thanks ...

Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -

iD8DBQFHYKJ8c5UpGjwzenMRAlU0AKCd5Egbdp5bOPE17qn+Ux3x+1FzBwCePu6i VEkX+OlTjYsRcPrDuTzK2Fc=
-----END PGP SIGNATURE----- mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 13 Dec 2007 - 03:13:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 13 Dec 2007 - 05:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.