Shiny Bindings for myIO
Usage
myIOOutput(outputId, width = "100%", height = "400px")
renderMyIO(expr, env = parent.frame(), quoted = FALSE)Value
myIOOutput returns a Shiny UI element for placement in a UI
definition. renderMyIO returns a Shiny render function for use in a
server definition.
Examples
if (interactive()) {
library(shiny)
ui <- fluidPage(myIOOutput("chart"))
server <- function(input, output) {
output$chart <- renderMyIO({
myIO(data = mtcars) |>
addIoLayer(type = "point", label = "scatter",
mapping = list(x_var = "wt", y_var = "mpg"))
})
}
shinyApp(ui, server)
}
