setRock {NGLVieweR}R Documentation

Set rock

Description

Set rock animation

Usage

setRock(NGLVieweR, rock = TRUE)

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

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

[Package NGLVieweR version 1.3.1 Index]