Learn R Programming

NGLVieweR (version 1.4.0)

setRock: Set rock

Description

Set rock animation

Usage

setRock(NGLVieweR, rock = TRUE)

Value

setRock parameter to TRUE or FALSE in NGLVieweR

htmlwidgets object.

Arguments

NGLVieweR

A NGLVieweR object.

rock

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

See Also

  • setSpin()

  • updateRock()

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

Examples

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

Run the code above in your browser using DataLab