m_viewer_spec {r3dmol}R Documentation

Specifying setup options for viewer

Description

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

Usage

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


[Package r3dmol version 0.1.2 Index]