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.

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 April 4, 2025, 4:33 a.m.