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

Reply via email to