setFocus | R Documentation |
Set Focus
setFocus(NGLVieweR, focus = 0)
NGLVieweR |
A NGLVieweR object. |
focus |
Set focus between 0 (default) to 100. |
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.