Learn R Programming

maidr (version 0.1.2)

maidr_output: MAIDR Output Container for Shiny UI

Description

Creates a Shiny output container for MAIDR widgets using htmlwidgets. This provides automatic dependency injection and robust JavaScript initialization.

Usage

maidr_output(output_id, width = "100%", height = "400px")

Value

A Shiny widget output function for use in UI

Arguments

output_id

The output variable to read the plot from

width

The width of the plot container (default: "100percent")

height

The height of the plot container (default: "400px")

Examples

Run this code
if (interactive()) {
  library(shiny)
  ui <- fluidPage(maidr_output("myplot"))
}

Run the code above in your browser using DataLab