Set slab of view (contents outside of slab are clipped).
m_set_slab(id, near, far)
R3dmol id
or a r3dmol
object (the output from
r3dmol()
)
near clipping plane distance
far clipping plane distance
R3dmol id
or a r3dmol
object (the output from
r3dmol()
)
library(r3dmol)
r3dmol() %>%
m_add_model(data = pdb_6zsl, format = "pdb") %>%
m_set_style(style = m_style_cartoon()) %>%
m_zoom_to() %>%
m_set_slab(near = -90, far = 0)