[Rd] Re: [R] persp(): add second plane

Ben Bolker bolker@zoo.ufl.edu
Fri, 15 Mar 2002 10:06:51 -0500 (EST)


  [forwarded to R-devel]

  I'm most interested in integrating persp() and scatterplot3d() so that
we can (e.g.) easily draw graphs like response surfaces with associated
points (yes, there are serious questions about whether 3d perspective
plots are good general tools for data presentation, but there are some
places where it's really useful).  I can think of a bunch of quick hacks,
but I don't really know how an integrated system should be designed for
consistency and ease of use.

  Ben

On Fri, 15 Mar 2002, Uwe Ligges wrote:

> 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"
> case.
>
> > 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:
>
> [snip]
>
>
> 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@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
318 Carr Hall                                bolker@zoo.ufl.edu
Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
Box 118525                                   (ph)  352-392-5697
Gainesville, FL 32611-8525                   (fax) 352-392-3704

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._