Re: [R] perspective

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
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 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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.