Styling options for the sphere representation. Used inside
m_add_style()
and m_set_style()
.
m_style_sphere(
scale = 1,
colorScheme = NULL,
color = NULL,
radius = NULL,
hidden = FALSE,
opacity = 1,
colorfunc = NULL
)
Scale radius by specified amount.
Specify scheme to color the atoms by. Default is "default". Other choices are "Carbon", "ssPyMOL", "ssJmol", "Jmol", "default", "amino", "shapely", "nucleic", "chain", "chainHetatm", "prop".
Discrete, fixed coloring, overrides any colorScheme.
Override van der waals radius.
Boolean - do not show atom. Default FALSE
.
Opacity of spheres, 0 being invisible. Must be the same for all atoms in the model.
Allows the user to provide a function for setting the colorSchemes, written in javascript. Official Documentation
r3dmol() %>%
m_add_model(data = pdb_1j72, format = "pdb") %>%
m_set_style(style = m_style_sphere(radius = 0.5)) %>%
m_zoom_to()