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