[R] save 3dplot to file

bbolker bolker at ufl.edu
Mon Sep 24 19:09:40 CEST 2007




Birgit Lemcke wrote:
> 
> I think it is an easy question but i haven´t found a solution since I  
> am r beginner.
> 
> I did this
> 
> 	plot3d(PCoA, type="p", col=rainbow(1000),size=5)
> 	text3d(PCoA, text=Nam)
> 
> 
> How can I save it including the labels to a jpg-file?
> 

 You can only save as  a PNG (using rgl.snapshot); also, be careful
when saving the PNG that the rgl graphics window isn't obscured by
other windows.  You can use other tools such as ImageMagick to
convert from PNG to JPEG.

  cheers
   Ben Bolker

-- 
View this message in context: http://www.nabble.com/save-3dplot-to-file-tf4510319.html#a12864028
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list