Learn R Programming

r3dmol (version 0.1.0)

m_spin: Continuously rotate a scene around the specified axis

Description

Continuously rotate a scene around the specified axis

Usage

m_spin(id, axis = "y")

Arguments

id

R3dmol id or a r3dmol object (the output from r3dmol())

axis

Axis ("x", "y", "z", "vx", "vy", "vz") to rotate around. Default "y". View relative (rather than model relative) axes are prefixed with "v".

Value

R3dmol id or a r3dmol object (the output from r3dmol())

Examples

Run this code
# NOT RUN {
library(r3dmol)
r3dmol() %>%
  m_add_model(data = pdb_6zsl, format = "pdb") %>%
  m_zoom_to() %>%
  m_spin()
# }

Run the code above in your browser using DataLab