Hi, does anyone know how to plot 3D parametric surface,e.g ellipsoid: x=a*cos(s)*cos(t), y=b*sin(s)*cos(t), z=sin(t); s in [0,2*pi], t in [-pi,pi]. Vytautas Maniusis, Vilnius University, Lithuania
Have you looked at "contour" and "persp" (plue "outer")? Venables and Ripley (2002) Mondern Applied Statistics with S (Springer) provide useful examples. hope this helps. spencer graves vtas at uosis.mif.vu.lt wrote:>Hi, >does anyone know how to plot 3D parametric surface,e.g ellipsoid: >x=a*cos(s)*cos(t), >y=b*sin(s)*cos(t), >z=sin(t); >s in [0,2*pi], >t in [-pi,pi]. > >Vytautas Maniusis, >Vilnius University, Lithuania > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help > >
vtas at uosis.mif.vu.lt wrote:> Hi, > does anyone know how to plot 3D parametric surface,e.g ellipsoid: > x=a*cos(s)*cos(t), > y=b*sin(s)*cos(t), > z=sin(t); > s in [0,2*pi], > t in [-pi,pi]. > > Vytautas Maniusis, > Vilnius University, LithuaniaA genuine 3d vector rendering package is on my todo list, but it has lower priorty than many other tasks (i.e. it is some years off). You might try looking at RGL to see if that meets your needs. -- Ross Ihaka Email: ihaka at stat.auckland.ac.nz Department of Statistics Phone: (64-9) 373-7599 x 85054 University of Auckland Fax: (64-9) 373-7018 Private Bag 92019, Auckland New Zealand