setRock: Set rock

View source: R/NGLVieweR.R

setRockR 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.

Details

Only one animation can run at a time. If both setRock(TRUE) and setSpin(TRUE) are used, the structure spins.

Value

setRock parameter to TRUE or FALSE in NGLVieweR htmlwidgets object.

See Also

  • setSpin()

  • updateRock()

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

Examples

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

NGLVieweR documentation built on Oct. 20, 2026, 1:07 a.m.