View source: R/NGLVieweR_example.R
NGLVieweR_example | R Documentation |
Launch an example to demonstrate how to use NGLvieweR
in
Shiny.
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", "updateZoomMove", "multiStructureSelection". |
Call to load Shiny example.
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.