Skip to contents

Render a shiny::renderPlot() within an application page, with support for overlays.

Usage

overlayPlotOutput(outputId, width, height)

Arguments

outputId

The output slot where the plot will be rendered using shiny::renderPlot(), with a call to overlayBounds().

width, height

Image width and height. Must be a valid CSS unit, like "100%", "400px", or "auto", or a number, interpreted as pixels.

Value

A plot output element that can be added to a UI definition.

See also

overlayServer(), for a complete example.

Examples

ui <- shiny::fluidPage(
    useOverlay(),
    overlayPlotOutput("my_plot", 640, 480)
    # further UI elements here . . .
)