m_set_projection: Set view projection scheme

Description Usage Arguments Value Examples

View source: R/set.R

Description

Set view projection scheme

Usage

1
m_set_projection(id, scheme = c("perspective", "orthographic"))

Arguments

id

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

scheme

Either orthographic or perspective. Default is perspective. Orthographic can also be enabled on viewer creation by setting orthographic to true in the config object.

Value

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

Examples

1
2
3
4
5
6
library(r3dmol)

r3dmol() %>%
  m_add_model(data = pdb_6zsl, format = "pdb") %>%
  m_set_style(style = m_style_cartoon()) %>%
  m_set_projection(scheme = "orthographic")

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