NGLVieweR_example: Run NGLVieweR example Shiny app

View source: R/NGLVieweR_example.R

NGLVieweR_exampleR Documentation

Run NGLVieweR example Shiny app

Description

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

Usage

NGLVieweR_example(example = "basic")

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", "updateZoomMove", "multiStructureSelection".

Value

Call to load Shiny example.

Examples


if (interactive()) {

# Basic example
NGLVieweR_example("basic")

# Example with API calls
NGLVieweR_example("API")

# Function specific example
NGLVieweR_example("addSelection")
}


NGLVieweR documentation built on April 4, 2025, 4:33 a.m.