| setFocus | R Documentation |
Set Focus
setFocus(NGLVieweR, focus = 0)
NGLVieweR |
A NGLVieweR object. |
focus |
Set focus between 0 (default) to 100. |
The focus sets the clipping planes and the fog (the NGL.js stage
parameters clipNear, clipFar, fogNear and
fogFar). Without setFocus() the viewer uses the NGL.js
defaults (with the default clipScale = "relative" these equal focus
0). Values of these four parameters given in stageParameters() win over
setFocus().
setFocus parameter in NGLVieweR htmlwidgets object.
updateFocus()
Other options:
setQuality(),
snapShot(),
updateFocus(),
updateFullscreen()
NGLVieweR("7CID") %>%
addRepresentation("cartoon",
param=list(name="cartoon", colorValue="blue")) %>%
setFocus(0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.