Save the orientation of a RGL plot3d() plot Save the orientation of a RGL plot3d() plot r r

Save the orientation of a RGL plot3d() plot


Ben's comment basically answers your question; this just applies expand.dots to what he wrote ;)

## In an inital session:library(rgl)plot3d(iris) ## Now move the image around to an orientation you like## Save RGL parameters to a list objectpp <- par3d(no.readonly=TRUE)## Save the list to a text filedput(pp, file="irisView.R", control = "all").......## Then, in a later session, to recreate the plot just as you had it:library(rgl)pp <- dget("irisView.R")plot3d(iris)par3d(pp)