r3dmol

Codecov test coverage R build status

This is an R package that provides support for 3Dmol.js as a htmlwidgets.

Installation

This package is still very early in its development stages, everything will be changed very often! Please give me a star on Github if you find it useful and I will speed up the development process!

You can install the released version of r3dmol from CRAN with:

# Not available now.
# install.packages("r3dmol")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("swsoyee/r3dmol")

Example

library(r3dmol)
r3dmol() %>%
  m_add_model(data = pdb_6zsl, format = "pdb") %>%
  m_zoom_to() %>%
  m_set_style(style = list(cartoon = list(color = 'spectrum')))
picture

About 3Dmol.js

Nicholas Rego and David Koes 3Dmol.js: molecular visualization with WebGL Bioinformatics (2015) 31 (8): 1322-1324 doi:10.1093/bioinformatics/btu829