NGLVieweR_example: Run NGLVieweR example Shiny app

Description Usage Arguments Value Examples

View source: R/NGLVieweR_example.R

Description

Launch an example to demonstrate how to use NGLvieweR in Shiny.

Usage

1

Arguments

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".

Value

Call to load Shiny example.

Examples

 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")
}

NGLVieweR documentation built on June 1, 2021, 9:08 a.m.