Learn R Programming

shiny (version 0.9.0)

imageOutput: Create a image output element

Description

Render a renderImage within an application page.

Usage

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

Arguments

outputId
output variable to read the image from
width
Image 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
Image height

Value

  • An image output element that can be included in a panel

Examples

Run this code
# Show an image
mainPanel(
  imageOutput("dataImage")
)

Run the code above in your browser using DataLab