[R] Can a dynamic graphic produced by rgl be saved?

Duncan Murdoch murdoch at stats.uwo.ca
Sun Jan 6 22:28:36 CET 2008


On 06/01/2008 10:46 AM, Michael Kubovy wrote:
> Dear r-helpers,
> 
> Can one save a dynamic graphic produced by rgl, e.g.:
> open3d();   x <- sort(rnorm(1000));   y <- rnorm(1000);   z <-  
> rnorm(1000) + atan2(x,y);   plot3d(x, y, z, col=rainbow(1000), size=2)
> as a dynamic figure that can be embedded in a pdf?

rgl doesn't produce any format that remains dynamic.  You can produce 
bitmap or (with some limitations) vector format snapshots, and you can 
put multiple bitmaps together into a movie (see movie3d(), for example). 
  I don't know how to embed a movie into a pdf, but I assume it's possible.

Duncan Murdoch




More information about the R-help mailing list