Description Usage Arguments Value See Also Examples
Add a zoom animation
1 |
NGLVieweR |
A NGLVieweR object. |
center |
Target distance of selected atoms/residues. See the section "selection-language" in the official NGL.js manual. |
zoom |
Target zoom of selected atoms/residues. See the section "selection-language" in the official NGL.js manual. |
duration |
Optional animation time in milliseconds (default = 0). |
z_offSet |
Optional zoom offset value (default = 0). |
List of zoomMove parameters to NGLVieweR
htmlwidgets
object.
Other animations:
setRock()
,
setSpin()
,
updateRock()
,
updateSpin()
,
updateZoomMove()
1 2 3 4 5 6 7 8 | NGLVieweR("7CID") %>%
stageParameters(backgroundColor = "white") %>%
addRepresentation("cartoon", param=list(name="cartoon", colorValue="red")) %>%
addRepresentation("ball+stick", param=list(name="ball+stick",
colorValue="yellow",
colorScheme="element",
sele="200")) %>%
zoomMove("200:A.C", "200:A.C", 2000, -20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.