m_png {r3dmol} | R Documentation |
Convert widgets to PNG image
Description
Convert widgets to PNG image
Usage
m_png(id, width, height)
Arguments
id |
R3dmol |
width , height |
image width and height. |
Value
Base64 encoded png image wrapped by <img>
tag.
Examples
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)
[Package r3dmol version 0.1.2 Index]