[R] RE: adding perspectives to existing persp plots

Deepayan Sarkar deepayan at stat.wisc.edu
Wed Dec 15 15:44:07 CET 2004


On Wednesday 15 December 2004 01:10, Corey Bradshaw wrote:
> Thanks, Romain. I've certainly used that to draw lines and points in
> the plots produced by 'persp'; however, my problem is that I need to
> incorporate an entirely new z function (not just a plane) onto the
> same plot (i.e., using the same x and y values).

If the surfaces are non-intersecting, you might be able to use 
'wireframe' from the lattice package. See the second example 
in ?wireframe.

Deepayan




More information about the R-help mailing list