Description Usage Arguments Value Examples
Sets the view to the specified translation, zoom, rotation and style
1 | m_set_view(id, arg, style)
|
id |
R3dmol |
arg |
Vector formatted view setting,
|
style |
css style object in list. |
R3dmol id
or a r3dmol
object (the output from
r3dmol()
)
1 2 3 4 5 6 7 | library(r3dmol)
r3dmol() %>%
m_add_model(data = pdb_6zsl, format = "pdb") %>%
m_set_style(style = m_style_cartoon()) %>%
m_set_view(arg = c(20, -20, 10, -200, 0, 1, 0, 0)) %>%
m_add_outline(color = "blue")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.