Learn R Programming

r3dmol (version 0.1.0)

m_set_slab: Set slab of view

Description

Set slab of view (contents outside of slab are clipped).

Usage

m_set_slab(id, near, far)

Arguments

id

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

near

near clipping plane distance

far

far clipping plane 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_style(style = list(cartoon = list())) %>%
  m_zoom_to() %>%
  m_set_slab(near = -90, far = 0)
# }

Run the code above in your browser using DataLab