Learn R Programming

r3dmol (version 0.1.0)

m_set_preceived_distance: Set the distance between the model and the camera

Description

Essentially zooming. Useful while stereo rendering.

Usage

m_set_preceived_distance(id, dist)

Arguments

id

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

dist

Numeric distance.

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_set_preceived_distance(dist = 200)
# }

Run the code above in your browser using DataLab