m_zoom_to: Zoom to center of atom selection

Description Usage Arguments Value Examples

View source: R/animation.R

Description

Zoom to center of atom selection. The slab will be set appropriately for the selection, unless an empty selection is provided, in which case there will be no slab.

Usage

1
m_zoom_to(id, sel, animationDuration, fixedPath)

Arguments

id

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

sel

Selection specification specifying model and atom properties to select. Default: all atoms in viewer.

animationDuration

an optional parameter of milliseconds numeric that denotes the duration of a zoom animation

fixedPath

if true animation is constrained to requested motion, overriding updates that happen during the animation

Value

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

Examples

1
2
3
4
5

r3dmol documentation built on March 14, 2021, 5:08 p.m.