shiny (version 0.10.2.2)

imageOutput: Create a image output element

Description

Render a renderImage within an application page.

Usage

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

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
inline
use an inline (span()) or block container (div()) for the output

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 DataCamp Workspace