rgl.postscript {rgl}R Documentation

export screenshot

Description

Saves the screenshot as PostScript file.

Usage

rgl.postscript( filename, fmt="eps" )

Arguments

filename full path to filename.
fmt export format, currently supported: ps, eps, tex, pdf

Details

Animations can be created in a loop modifying the scene and saving a screenshot to a file. (See example below)

Author(s)

Christophe Geuzaine / Albrecht Gebhardt

References

GL2PS: an OpenGL to PostScript printing library by Christophe Geuzaine

See Also

rgl.viewpoint, rgl.snapshot

Examples


## Not run: 

#
# create animation
#

for (i in 1:45) {
  rgl.viewpoint(i,20)
  print( paste("pic",formatC(i,digits=1,flag="0"),".eps",sep="") )
  rgl.postscript(filename, fmt=eps)
}

## End(Not run)


[Package rgl version 0.65 Index]