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

2008-01-06 Thread Michael Kubovy
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?
_
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400Charlottesville, VA 22904-4400
Parcels:Room 102Gilmer Hall
 McCormick RoadCharlottesville, VA 22903
Office:B011+1-434-982-4729
Lab:B019+1-434-982-4751
Fax:+1-434-982-4766
WWW:http://www.people.virginia.edu/~mk9y/

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2008-01-06 Thread Eric R.

?rgl.snapshot


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?
 _
 Professor Michael Kubovy
 University of Virginia
 Department of Psychology
 USPS: P.O.Box 400400Charlottesville, VA 22904-4400
 Parcels:Room 102Gilmer Hall
  McCormick RoadCharlottesville, VA 22903
 Office:B011+1-434-982-4729
 Lab:B019+1-434-982-4751
 Fax:+1-434-982-4766
 WWW:http://www.people.virginia.edu/~mk9y/
 
 __
 R-help@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-help
 PLEASE do read the posting guide
 http://www.R-project.org/posting-guide.html
 and provide commented, minimal, self-contained, reproducible code.
 
 

-- 
View this message in context: 
http://www.nabble.com/Can-a-dynamic-graphic-produced-by-rgl-be-saved--tp14649977p14650635.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2008-01-06 Thread Duncan Murdoch
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

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.