Description Usage Arguments Value Examples
View source: R/NGLVieweR_example.R
Launch an example to demonstrate how to use NGLvieweR
in Shiny.
1 | NGLVieweR_example(example = "basic")
|
example |
Example type for which to see an example, possible values are: "basic", "API", "addSelection", "removeSelection", "snapshot", "updateAnimation", "updateColor", "updateFocus", "updateFullscreen", "updateRepresentation", "updateSelection", "updateStage", "updateVisibility" and "updateZoomMove". |
Call to load Shiny example.
1 2 3 4 5 6 7 8 9 10 11 | if (interactive()) {
# Basic example
NGLVieweR_example("basic")
# Example with API calls
NGLVieweR_example("API")
# Function specific example
NGLVieweR_example("addSelection")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.