m_set_view {r3dmol} | R Documentation |
Sets the view to the specified translation, zoom, rotation and style
Description
Sets the view to the specified translation, zoom, rotation and style
Usage
m_set_view(id, arg, style)
Arguments
id |
R3dmol |
arg |
Vector formatted view setting,
|
style |
css style object in list. |
Value
R3dmol id
or a r3dmol
object (the output from
r3dmol()
)
Examples
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")
[Package r3dmol version 0.1.2 Index]