snap | R Documentation |
snap
is designed as a more convenient interface to rgl.snapshot
,
allowing one to set a base filename for graphic output files, an initial
sequence number, and then just use
snap()
to capture the current screen image to a sequentially numbered output file.
snap(n = 0, fn = "Movie" , suffix = "", inc = TRUE, fmt = "png")
n |
Initial suffix number used to construct the file name. |
suffix |
Character string appended to |
fn |
Base file name with rgl.cur() appended. Can be set with Plot3d.par(snap.fn="File"). |
inc |
Should the function increment the sequential number in the global environment? |
fmt |
Output graphic file format. Default: |
Output files are written to the current directory. Use fn
to put them in a sub-directory.
Returns invisibly the name of the snapshot file
Georges Monette
rgl.snapshot
## Not run:
# ... generate an rgl graph ...
# In a rgl window in which 'snap' has not been invoked:
snap()
# ... will invoke rgl.snapshot which filename 'Movie10000.png' and increment
# snap.n to '0001'
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.