plainViewOutput: Widget output/render function for use in Shiny

View source: R/plainView.R

plainViewOutputR Documentation

Widget output/render function for use in Shiny

Description

Widget output/render function for use in Shiny

Usage

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

renderPlainView(expr, env = parent.frame(), quoted = FALSE)

Arguments

outputId

Output variable to read from

width, height

the width and height of the map (see shinyWidgetOutput)

expr

An expression that generates an HTML widget

env

The environment in which to evaluate expr

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable

Examples

if (interactive()) {
  library(shiny)

  plt = plainView(poppendorf[[4]])

  ui = fluidPage(
    plainViewOutput("plot")
  )

  server = function(input, output, session) {
    output$plot <- renderPlainView(plt)
  }

  shinyApp(ui, server)

}


plainview documentation built on July 26, 2023, 5:24 p.m.