Styling options for the stick representation. Used inside
m_add_style()
and m_set_style()
.
m_style_stick(
radius = 0.3,
singleBonds = FALSE,
colorScheme = NULL,
color = NULL,
opacity = 1,
hidden = FALSE,
colorfunc = NULL
)
Radius of sticks.
Draw all bonds as single bonds if TRUE
.
Specify scheme to color the atoms by. Default is "default". Other choices are "Carbon", "ssPyMOL", "ssJmol", "Jmol", "default", "amino", "shapely", "nucleic", "chain", "chainHetatm", "prop".
Fixed coloring, overrides colorScheme.
Opacity, must be the same for all atoms in the model.
Do not show.
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_stick(opacity = 0.4)) %>%
m_zoom_to()