m_add_sphere {r3dmol} | R Documentation |
Add Sphere Shape
Description
Adds sphere at given location, with given radius.
Usage
m_add_sphere(id, center, radius = 1, spec = m_shape_spec(), ...)
Arguments
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
|
Examples
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))
[Package r3dmol version 0.1.2 Index]