[R] RE: adding perspectives to existing persp plots

Corey Bradshaw corey.bradshaw at cdu.edu.au
Wed Dec 15 08:10:06 CET 2004

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).


-----Original Message-----
From: francoisromain at free.fr [mailto:francoisromain at free.fr] 
Sent: Wednesday, December 15, 2004 4:30 PM
To: Corey Bradshaw
Cc: R-help at stat.math.ethz.ch


Just look at the examples in ?persp.
There is a function called trans3d defined in it that will traduce your 3D
coordinates to 2D, and so you will be able to draw lines with lines function.


Corey Bradshaw a écrit :

>I've created a perspective plot using 'persp' in the graphics package.
>I'd like to add a second plane of z values to the existing plot, but I
>cannot seem to do this using 'persp'. Is there an analogue to 'lines' or
>'points' for perspectives?
>corey.bradshaw at cdu.edu.au
Romain FRANCOIS : francoisromain at free.fr
page web : http://addictedtor.free.fr/  (en construction)
06 18 39 14 69 / 01 46 80 65 60
Etudiant en 3eme année
Institut de Statistique de l'Université de Paris (ISUP)
Filière Industrie et Services

More information about the R-help mailing list