LuminophoR: HTMLWidget implementation of Lumino layout manager

See also

Examples

if (interactive()) { library(shiny) library(luminophor) shinyApp( ui = fluidPage( titlePanel("Old Faithful Geyser Data"), fluidRow(column(12, luminophorOutput('lmo', height='90vh'))) ), server = function(input, output) { output$lmo <- renderLuminophor( luminophor() %>% addWidget("widget-slider", title = "Slider", ui = sliderInput("bins", "Number of bins:", min = 1, max = 50, value = 30)) %>% addWidget("widget-plot", title = "Plot", insertmode = "split-right", refwidgetID = "widget-slider", relsize = 0.75, ui = plotOutput("distPlot")) ) output$distPlot <- renderPlot({ x <- faithful[, 2] bins <- seq(min(x), max(x), length.out = input$bins + 1) hist(x, breaks = bins, col = 'darkgray', border = 'white') }) } ) }