Whenever I do a re-plot on a RGL plot3D it causes the view orientation of the plot to be reset to it's default.
Does anyone know how to save these settings so that I can reapply them after a plot is redrawn. I tried this:
# save settings
pp <- par3d(no.readonly=TRUE)
# initialize plot
plot3d(c(), c(), c(), "", "", "")
# Replot data here
# ...
# restore settings
par3d(pp)
However, this did not restore the plot orientation.
EDIT: printing out the result of par3d() shows that the values are not getting updated as the plot is rotated and zoomed, so I'm guessing this is the issue. It might be an issue only with ShinyRGL if people have gotten it to work with rgl.