Skip to contents

qeOutput() places a plot in the UI; renderQe() fills it from an expression returning a qe_plot or a qe_widget().

Usage

qeOutput(outputId, width = "100%", height = "440px")

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

Arguments

outputId

Shiny output id.

width, height

CSS size of the output.

expr

Expression returning a qe_plot or qe_widget().

env

Environment in which to evaluate expr.

quoted

Is expr already quoted?

Examples

if (FALSE) { # \dontrun{
ui <- shiny::fluidPage(
  shiny::selectInput("g", "Group", c("FirstGame", "SecondGame")),
  qeOutput("plot")
)
server <- function(input, output) {
  output$plot <- renderQe(qe_plot(set) |> qe_edges(input$g) |> qe_group(input$g))
}
shiny::shinyApp(ui, server)
} # }