I have a 3D plot using RGL. I would like to make identical plots using color to highlight the distribution of some variable. To do this I would like to have identical plots, how do I find and set the orientation of a plot?
Once I make a preliminary plot, I move it around to find a nice display angle and I would like to save that angle and incorporate it into future plotting scripts. Anyone have a suggestion on how to do this?
library(rgl)
plot3d(iris)
#play with the plot to find a good angle
#save the angle for future plots
pp <- par3d(no.readonly=TRUE); ...; par3d(pp)
– Patriciapatricianpp
as a variable that I can incorporate into a future script without recalculating? – Crinose?rgl.viewpoint
– Greenleaf