par3d.save | R Documentation |
Use this function to make a manually manipulated rgl view reproducible, within sessions or
across sessions. Within an R session, simply use par3d.save
to record
the par3d
parameters for the view(s) to named objects. Across
sessions, use the filename
argument to save these to .rds files
par3d.save(
params = c("userMatrix", "scale", "zoom", "FOV"),
filename,
dev = rgl.cur()
)
par3d.restore(parms, filename)
params |
A list of |
filename |
Name of a |
dev |
The rgl device. Currently unused |
parms |
A list of |
par3d.save
returns a list with the current values of the
par3d
parameters named in params
.
Michael Friendly
par3d
## Not run:
library(rgl)
open3d()
# ...
parms <- par3d.save()
# ....
par3d.restore(parms)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.