m_center {r3dmol} | R Documentation |
Re-center the viewer around the provided selection
Description
Re-center the viewer around the provided selection (unlike zoomTo, does not zoom).
Usage
m_center(id, sel, animationDuration, fixedPath)
Arguments
id |
R3dmol |
sel |
Selection specification specifying model and atom properties to select. Default: all atoms in viewer |
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_set_style(style = m_style_cartoon()) %>%
m_center(animationDuration = 1000)
[Package r3dmol version 0.1.2 Index]