setRock | R Documentation |
Set rock animation
setRock(NGLVieweR, rock = TRUE)
NGLVieweR |
A NGLVieweR object. |
rock |
If |
setRock parameter to TRUE
or FALSE
in NGLVieweR
htmlwidgets
object.
setSpin()
updateRock()
Other animations:
setSpin()
,
updateRock()
,
updateSpin()
,
updateZoomMove()
NGLVieweR("7CID") %>%
addRepresentation("cartoon", param=list(name="cartoon", colorValue="blue")) %>%
setRock(TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.