Closed karoliskoncevicius closed 10 years ago
Should be fixed now. Thanks!
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
This was initially posted as a question on stack overflow. But then after googling around I found this issue tracker. I am pasting the same text here:
I am trying to use rgl knitr and webgl to plot several interactive 3d plots in a sequence.
And I am getting quite a weird behavior: when trying to rotate the plots with a mouse they seem to get back to their initial position after each mouse drag. This makes the interaction quite unintuitive. I noticed that the last plot on a page is not affected by this, but all the rest are.
This can be seen on the original knitr example:
source: https://dl.dropboxusercontent.com/u/15335397/misc/webgl-rmd.Rmd
plots: https://dl.dropboxusercontent.com/u/15335397/misc/webgl-rmd.html
Notice the differences when trying to rotate the first and second figure.
What could be a potential cause? Maybe the problem can be solved by passing some additional parameters to the 3d and rgl plots (was not able to find any)? Or is it a minor bug of knitr and webgl?
http://stackoverflow.com/questions/23021317/rottation-of-r-3d-plots-not-working-properly-with-knitr-and-webgl