Put useOverlay()
in your Shiny app's UI to use overshiny
's interactive
plot overlays.
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
ui <- shiny::fluidPage(
useOverlay()
# further UI elements here . . .
)
server <- function(input, output) {
# server code here . . .
}
if (interactive()) {
shiny::shinyApp(ui, server)
}