rgl.snapshot {rgl} | R Documentation |
Saves the screenshot as png file.
rgl.snapshot( filename, fmt="png" )
filename |
full path to filename. |
fmt |
image export format, currently supported: png |
Animations can be created in a loop modifying the scene and saving a screenshot to a file. (See example below)
## Not run: # # create animation # for (i in 1:45) { rgl.viewpoint(i,20) print( paste("pic",formatC(i,digits=1,flag="0"),".png",sep="") ) rgl.snapshot(filename) } ## End(Not run)