# NOT RUN {
library(r3dmol)
# Single-model file with m_add_model() function
r3dmol() %>%
m_add_model(data = pdb_6zsl, format = "pdb")
# Multi-model file with m_add_models() function
r3dmol() %>%
m_add_models(data = sdf_multiple, "sdf") %>%
m_zoom_to()
# Multi-model file with m_add_model() function
r3dmol() %>%
m_add_model(data = sdf_multiple, "sdf") %>%
m_zoom_to()
# Add model and keep hydrogens.
# }
# NOT RUN {
r3dmol() %>%
m_add_model(m_fetch_pdb("5D8V"), keepH = TRUE) %>%
m_set_style(m_style_sphere()) %>%
m_zoom_to() %>%
m_spin()
# }
Run the code above in your browser using DataLab