setRock: Set rock

Description Usage Arguments Value See Also Examples

View source: R/NGLVieweR.R

Description

Set rock animation

Usage

1

Arguments

NGLVieweR

A NGLVieweR object.

rock

If TRUE (default), start rocking and stop spinning.

Value

setRock parameter to TRUE or FALSE in NGLVieweR htmlwidgets object.

See Also

Other animations: setSpin(), updateRock(), updateSpin(), updateZoomMove(), zoomMove()

Examples

1
2
3
NGLVieweR("7CID") %>%
 addRepresentation("cartoon", param=list(name="cartoon", colorValue="blue")) %>%
 setRock(TRUE)

NGLVieweR documentation built on June 1, 2021, 9:08 a.m.