Description Usage Arguments Examples
Styling options for the line representation. Used inside
m_add_style()
and m_set_style()
. Can also be used for styling
when adding individual lines with m_add_line()
.
1 2 3 4 5 6 | m_style_line(
colorScheme = "default",
color = NULL,
opacity = 1,
hidden = FALSE
)
|
colorScheme |
Specify scheme to color the atoms by. Default is "default". Other choies are "Carbon", ssPyMOL", "ssJmol", "Jmol", "default", "amino", "shapely", "nucleic", "chain", "chainHetatm", "prop". |
color |
Fixed coloring, overrides |
opacity |
Opacity, must be the same for all atoms in the model. |
hidden |
Logical, do not show line. |
1 2 3 4 | r3dmol() %>%
m_add_model(data = pdb_1j72, format = "pdb") %>%
m_set_style(style = m_style_line(color = "blue")) %>%
m_zoom_to()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.