m_remove_all_models: Delete all existing models

Description Usage Arguments Value Examples

View source: R/remove.R

Description

Delete all existing models

Usage

1

Arguments

id

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

Value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(r3dmol)

mol <- r3dmol() %>%
  m_add_model(data = "data-raw/Conformer3D_CID_5291.sdf", format = "sdf")

# Render model
mol

# Remove all labels
mol %>%
  m_remove_all_models()

r3dmol documentation built on March 14, 2021, 5:08 p.m.