useOverlay {overshiny}R Documentation

Set up a Shiny app to use overshiny

Description

Put useOverlay() in your Shiny app's UI to use overshiny's interactive plot overlays.

Usage

useOverlay()

Details

This can go anywhere in your UI and it can be inserted multiple times with no ill effect. This also calls shinyjs::useShinyjs(), as overshiny depends on shinyjs.

Value

Returns HTML that gets inserted into the ⁠<head>⁠ of your app.

See Also

overlayServer(), for a complete example.

Examples

ui <- shiny::fluidPage(
    useOverlay()
    # further UI elements here . . .
)

server <- function(input, output) {
    # server code here . . .
}

if (interactive()) {
    shiny::shinyApp(ui, server)
}


[Package overshiny version 0.1.0 Index]