Learn R Programming

r3dmol (version 0.1.0)

m_enable_fog: Enable/disable fog for content far from the camera

Description

Enable/disable fog for content far from the camera

Usage

m_enable_fog(id, fog = TRUE)

Arguments

id

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

fog

whether to enable or disable the fog, default is TRUE.

Value

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_set_style(style = list(cartoon = list())) %>%
  m_enable_fog(fog = FALSE)
# }

Run the code above in your browser using DataLab