shiny (version 0.4.0)

plotOutput: Create a plot output element

Description

Render a renderPlot within an application page.

Usage

plotOutput(outputId, width = "100%", height = "400px")

Arguments

outputId
output variable to read the plot from
width
Plot width. Must be a valid CSS unit (like "100%", "400px", "auto") or a number, which will be coerced to a string and have "px" appended.
height
Plot height

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