[R] Saving surface3d Output

Duncan Murdoch murdoch at stats.uwo.ca
Mon Feb 13 13:20:06 CET 2006


On 2/13/2006 6:56 AM, Laura Quinn wrote:
> Hello,
> 
> Please could someone advise if it's possible to save the graphical output
> from the surface3d() function? I have tried the dev.copy() function to
> save as a pdf but an error message says I cannot copy from the null
> device.

Are you talking about surface3d in the rgl package?  It doesn't use the 
standard R graphics system, so dev.copy() won't help.  You need 
rgl.snapshot, which can create png files.  You'll need some other 
utility to convert those to pdf.

Duncan Murdoch




More information about the R-help mailing list