m_rotate {r3dmol} | R Documentation |
Rotate scene by angle degrees around axis
Description
Rotate scene by angle degrees around axis
Usage
m_rotate(id, angle, axis = "v", animationDuration = 0, fixedPath)
Arguments
id |
R3dmol |
angle |
Angle, in degrees |
axis |
Axis ( |
animationDuration |
an optional parameter of milliseconds |
fixedPath |
if |
Value
R3dmol id
or a r3dmol
object (the output from
r3dmol()
)
Examples
library(r3dmol)
r3dmol() %>%
m_add_model(data = pdb_6zsl, format = "pdb") %>%
m_rotate(angle = 90, axis = "y", animationDuration = 1000)
[Package r3dmol version 0.1.2 Index]