Learn R Programming

NGLVieweR (version 1.4.0)

setSpin: Set Spin

Description

Set Spin animation

Usage

setSpin(NGLVieweR, spin = TRUE)

Value

setSpin parameter to TRUE or FALSE in NGLVieweR

htmlwidgets object.

Arguments

NGLVieweR

A NGLVieweR object.

spin

If TRUE (default), start spinning and stop rocking

See Also

  • setRock()

  • updateSpin()

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

Examples

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

Run the code above in your browser using DataLab