[R] persp(): add second plane

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Mar 15 09:26:54 CET 2002

Henrik Bengtsson wrote:
> Hmm, very interesting. I guess I am not the only one that thought about
> extending Ben Bolkers idea to plot R^3 data by starting with an empty
> persp(). Except from the "risk" of plotting outside the bounds of 3d-box
> created by persp() 

Have a look into the code of the package "scatterplot3d". That "risk" is
already solved in there and the ideas will also work for your example.
Also some other generalizations could be adapt for the "persp()-3d"

> I can't see any problems with this approach. I wrote up
> some code for a plot3d() and a points3d() method. I have pasted the code at
> the end and as you see I made the plot3d() code to be almost identical to
> the one for persp(). First an example how the functions can be used and then
> the code:


Uwe Ligges
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list