shiny (version 0.10.2.1)

plotOutput: Create an plot output element

Description

Render a renderPlot within an application page.

Usage

plotOutput(outputId, width = "100%", height = "400px", clickId = NULL,
  hoverId = NULL, hoverDelay = 300, hoverDelayType = c("debounce",
  "throttle"), inline = FALSE)

Arguments

outputId
output variable to read the plot from
width,height
Plot width/height. Must be a valid CSS unit (like "100%", "400px", "auto") or a number, which will be coerced to a string and have "px" appended. These two arguments are ignored when inline = TRUE<
clickId
If not NULL, the plot will send coordinates to the server whenever it is clicked. This information will be accessible on the input object using input$clickId. The value will be a named list or v
hoverId
If not NULL, the plot will send coordinates to the server whenever the mouse pauses on the plot for more than the number of milliseconds determined by hoverTimeout. This information will be accessible on the input ob
hoverDelay
The delay for hovering, in milliseconds.
hoverDelayType
The type of algorithm for limiting the number of hover events. Use "throttle" to limit the number of hover events to one every hoverDelay milliseconds. Use "debounce" to suspend events while the cursor is moving, and
inline
use an inline (span()) or block container (div()) for the output

Value

  • A plot output element that can be included in a panel

Examples

Run this code
# Show a plot of the generated distribution
mainPanel(
  plotOutput("distPlot")
)

Run the code above in your browser using DataCamp Workspace