powered by
Takes a selection and adds additional styling to selection.
m_set_style(id, style = m_style_cartoon(), sel = m_sel())
R3dmol id or a r3dmol object (the output from r3dmol())
id
r3dmol
r3dmol()
Style spec to apply to specified atoms using m_style_*()
Atom selection specification with m_sel()
m_sel()
# NOT RUN { library(r3dmol) # Add style to model r3dmol() %>% m_add_model(data = pdb_1j72, format = "pdb") %>% m_add_style(style = m_style_cartoon()) %>% m_zoom_to() # }
Run the code above in your browser using DataLab