Description Usage Arguments Value Examples
Convert widgets to PNG image
1 |
id |
R3dmol |
width, height |
image width and height. |
Base64 encoded png image wrapped by <img>
tag.
1 2 3 4 5 6 7 | library(r3dmol)
r3dmol() %>%
m_add_model(data = pdb_1j72, format = "pdb") %>%
m_set_style(style = m_style_cartoon()) %>%
m_zoom_to() %>%
m_png(width = 600)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.