Animate 2D,3D surfaces. R.

51 Views Asked by At

You can easily create 3D surfaces in MatLab, Maxima, Maple, symbolic calculus programs or software.

In these programs you can also create animations, and see them while they're generating, of 2D or 3D surfaces using different libraries as plots in Maple and functions like animate3D(),animatecurve() or so.

Is it possible to do it in R? Is there any library to do so? I know for example the library plotly or the command surf3D() but I cannot find functions for animations.

Here is an example of a code in Maple:

animate3d([(u^2+2*u+1)*cos(v*t),(u^2+2*u+1)*sin(v*t),u],v=0..2*Pi,u=-10..10,t=0..1,
          shading=zgrayscale,lightmodel=light1);

3D surface