Re: [R] perspective

From: Duncan Murdoch <>
Date: Tue 09 May 2006 - 23:59:54 EST

On 5/9/2006 9:50 AM, Dominique Katshunga wrote:
> Dear r-users,
> how can I use the "persp" or a similar command in R to plot two surfaces
> in the same set of axes?

That's not really easy to do well using the "painter's algorithm" that persp uses. It needs to know all the facets of both surfaces so it can sort them from back to front for display.

You can display two surfaces using the persp3d function in the unreleased next version of rgl (build your own from the source at, or get a prebuilt copy from my web page, or put together your own using rgl.surface in the current version.

Duncan Murdoch mailing list PLEASE do read the posting guide! Received on Wed May 10 00:03:54 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 10 May 2006 - 02:10:01 EST.

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