powered by
Convert widgets to PNG image
m_png(id, width, height)
R3dmol id or a r3dmol object (the output from r3dmol()).
id
r3dmol
r3dmol()
image width and height.
Base64 encoded png image wrapped by <img> tag.
<img>
# NOT RUN { 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) # }
Run the code above in your browser using DataLab