[R] perspective

Duncan Murdoch murdoch at stats.uwo.ca
Tue May 9 15:59:54 CEST 2006


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 
http://rgl.neoscientists.org, or get a prebuilt copy from my web page 
http://www.stats.uwo.ca/faculty/murdoch/software), or put together your 
own using rgl.surface in the current version.

Duncan Murdoch




More information about the R-help mailing list