[R] exporting 3D dynamic graph

Duncan Murdoch murdoch.duncan at gmail.com
Mon Nov 5 15:57:26 CET 2012


On 05/11/2012 9:23 AM, Christophe Genolini wrote:
> Hi the list,
>
> Using misc3d, we can export 3d dynamic graph in pdf format.
>
> Is it also possible to export these graph into a format that we can publish on the web?

You could write to WebGL.  Most browsers support this (but it might need 
to be turned on, and Internet Explorer doesn't support it at all).  See 
?writeWebGL.

If you're using the R-forge version of rgl, you can also write to .stl 
format, which is readable by many other programs (but much more limited 
than WebGL).  There are probably converters out there that can write 
some other format based on the .stl.  See ?writeSTL.

Duncan Murdoch




More information about the R-help mailing list