powered by
Set Spin animation
setSpin(NGLVieweR, spin = TRUE)
setSpin parameter to TRUE or FALSE in NGLVieweR
TRUE
FALSE
NGLVieweR
htmlwidgets object.
htmlwidgets
A NGLVieweR object.
If TRUE (default), start spinning and stop rocking
setRock()
updateSpin()
Other animations: setRock(), updateRock(), updateSpin(), updateZoomMove()
updateRock()
updateZoomMove()
NGLVieweR("7CID") %>% addRepresentation("cartoon", param=list(name="cartoon", colorValue="blue")) %>% setSpin(TRUE)
Run the code above in your browser using DataLab