m_viewer_spec: Specifying setup options for viewer

Description Usage Arguments

View source: R/options.R

Description

Returns a list for the setup r3dmol() function, to set overall settings for the viewer going forward.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
m_viewer_spec(
  id = NULL,
  defaultcolors = NULL,
  cartoonQuality = 5,
  antialias = TRUE,
  nomouse = FALSE,
  backgroundColor = "white",
  lowerZoomLimit = 5,
  upperZoomLimit = 400,
  orthographic = FALSE,
  disableFog = FALSE
)

Arguments

id

id of the canvas.

defaultcolors

Object defining default atom colors as atom => color property value pairs for all models within this viewer.

cartoonQuality

Defaults to 5.

antialias

Logical, disable to decrease quality but improve performance.

nomouse

Whether to disable handling of mouse events. Disabled will prevent user interaction.

backgroundColor

color of the canvas's background.

lowerZoomLimit

Specify how far the user can zoom in.

upperZoomLimit

Specify how far the user can zoom out.

orthographic

Logical. Setting orthographic instead of perspective representation.

disableFog

Logical, disable fog, defaults to FALSE


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