Learn R Programming

overshiny (version 0.1.0)

useOverlay: 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()

Arguments

Value

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

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.

See Also

overlayServer(), for a complete example.

Examples

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

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

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

Run the code above in your browser using DataLab