Learn R Programming

r3dmol (version 0.1.2)

m_render: Render current state of viewer

Description

Render current state of viewer, after adding/removing models, applying styles, etc. In most cases, the model will render automatically, only call it when manual rendering is required.

Usage

m_render(id)

Arguments

id

R3dmol id or a r3dmol object (the output from r3dmol())

Examples

Run this code
# NOT RUN {
library(r3dmol)

r3dmol() %>%
  m_add_model(data = pdb_6zsl, format = "pdb") %>%
  m_render()
# }

Run the code above in your browser using DataLab