Description Usage Arguments Examples
Adds sphere at given location, with given radius.
1 | m_add_sphere(id, center, radius = 1, spec = m_shape_spec(), ...)
|
id |
R3dmol |
center |
center point of sphere. Can be |
radius |
radius of sphere. |
spec |
Additional shape specifications defined with
|
... |
Additional shape specifcations, that can be called outside of
|
1 2 3 4 5 6 7 | r3dmol() %>%
m_add_model(data = m_fetch_pdb("1bna")) %>%
m_add_sphere(
center = m_sel(resi = 1),
spec = m_shape_spec(color = "green", wireframe = TRUE)
) %>%
m_zoom_to(sel = m_sel(resi = 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.