[R] plotting intersecting planes
Paul Murrell
p.murrell at auckland.ac.nz
Wed Nov 20 02:56:44 CET 2002
Hi
It is possible to perform some simple annotations to 3D plots -- see the
examples in help(persp). It is also possible to do some fancier things
(e.g., http://www.stat.auckland.ac.nz/~paul/luvhue.pdf,
http://www.stat.auckland.ac.nz/~paul/hsvhue.pdf), even possibly
intersecting planes, but you have to do a lot of the work yourself and
you really have to know what you are doing, so this doesn't really come
under the heading of "simple solutions" :)
I'm afraid R does not currently have its own general-purpose
hidden-surface removal code so general-case 3D scenes via persp() are
just not possible.
Others have mentioned scatterplot3d; depending on your platform, you
might also want to take a look at Duncan Murdoch's RGL package
(http://fisher.stats.uwo.ca/faculty/murdoch/software/)
Paul
Peter Dunn wrote:
>
> Many thanks to all who replied to:
>
> > > They are considering using R to avoid licensing issues with
> > > MATLAB.
>
> ...by indicating that SciLab and Octave are available. We actually
> are aware of both, and have at times tried both. R is being
> considered as it possibly caters better for both the mathematics
> and statistics courses in our Department, without having to support
> two packages (such as Octave *and* R).
>
> Still, I am looking forward to any more possible solutions to the
> original question, though Carlos Ortega suggested I search the
> News archive. The solution appears to be to use scatterplot3d,
> which isn't with my R, so I'll have to grab it and have a look.
>
> The original request:
>
> > about, say, plottting intersecting planes? I can't seem to find a
> > way of plotting in 3D, and then adding another plot.
> > I guess I am after a 3D equivalent of lines or points;
> > one plots the original plot and then adds to it.
> >
> > Ideally, this would be a simple task; we wouldn't want to have
> > our students mucking about too much to plot two planes intersecting.
>
> Ideally, a simpler solution is still preferred!
>
> But thanks again to everyone.
>
> P.
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x5392
paul at stat.auckland.ac.nz
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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