Description Usage Arguments Value Examples
Functions of setting viewer properties, such as width, height, background color, etc. The viewer size can be adjusted automatically under normal circumstances.
1 2 3 4 5 | m_set_width(id, width)
m_set_height(id, height)
m_set_background_color(id, hex, alpha)
|
id |
R3dmol |
width, height |
Weight and height |
hex |
Hex code specified background color, or standard color spec
|
alpha |
Alpha level |
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_zoom_to() %>%
m_set_width(300) %>%
m_set_background_color("#666666", alpha = 0.9)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.