Description Usage Arguments Value Examples
Remove all shape objects from viewer
1 |
id |
R3dmol |
id R3dmol id
or a r3dmol
object (the output from
r3dmol()
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.