Remove all shape objects from viewer
m_remove_all_shapes(id)
R3dmol id
or a r3dmol
object (the output from
r3dmol()
)
id R3dmol id
or a r3dmol
object (the output from
r3dmol()
)
library(r3dmol)
mol <- r3dmol() %>%
m_add_model(data = pdb_6zsl, format = "pdb") %>%
m_add_sphere(
center = list(x = 0, y = 0, z = 0),
radius = 10.0,
color = "red"
)
# Render model with shape
mol
# Remove shape
mol %>%
m_remove_all_shapes()