[R] [R]How to plot a 3D ellipsoid in R?
Ben Bolker
ben at zoo.ufl.edu
Thu Dec 5 20:06:03 CET 2002
R is not particularly good for this task. Search the mailing list
archives for solutions ... Duncan Murdoch has a package called rgl that
works under Windows with OpenGL, but as far as I can tell you'd still have
to write your own function to put together the primitives for an ellipsoid
(http://www.stats.uwo.ca/faculty/murdoch/software/). Another choice is my
LG3d package, in the bbmisc bundle at http://www.zoo.ufl.edu/bolker/R/src
or /windows, which constructs an HTML file which can be dynamically
rotated with a Java applet from elsewhere.
Mathematica, Maple, Matlab ( ... I don't know what Octave's capabilities
are in this regard ...) are other possibilities.
Ben
On Thu, 5 Dec 2002, Feng Zhang wrote:
> Hey, all
>
> I am going to plot several 3-dimensional ellipsoids
> in R.
> For example, A is such a ellipsoid with
> mean u=[1 1 1]', covariance matrix C=[1 0 .5;0 1 .6;.5 .6 1];
> So how can I plot such object in 3D space?
>
> Is there some function to achieve this?
>
> Thanks.
>
> Fred
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
--
318 Carr Hall bolker at 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
More information about the R-help
mailing list