[R] RE: adding perspectives to existing persp plots
Corey Bradshaw
corey.bradshaw at cdu.edu.au
Thu Dec 16 04:40:42 CET 2004
Hi there,
Turns out it was a simply 'par' problem
I just needed to establish par(new = TRUE) after the first 'persp' plot
and prior to coding the 2nd 'persp' plot.
Thanks for your suggestions.
Corey
-----Original Message-----
From: Deepayan Sarkar [mailto:deepayan at stat.wisc.edu]
Sent: Thursday, December 16, 2004 12:14 AM
To: r-help at stat.math.ethz.ch
Cc: Corey Bradshaw
Subject: Re: [R] RE: adding perspectives to existing persp plots
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