shinyGold is an implementation of the Golden Layout javascript library in Shiny
Not yet!
This is an example of how shinyGold will be implemented when fully released
library(shiny)
library(shinyGold)
ui <- goldenLayout()
server <- function(input, output, session) {
output$distPlot <- renderPlot({
x <- faithful$waiting
bins <- seq(min(x), max(x), length.out = input$bins + 1)
hist(x, breaks = bins, col = "#75AADB", border = "white",
xlab = "Waiting time to next eruption (in mins)",
main = "Histogram of waiting times")
})
output$A <- renderUI({
tagList(
sliderInput(inputId = "bins",
label = "Number of bins:",
min = 1,
max = 50,
value = 30)
)
})
output$B <- renderUI({
tagList(
plotOutput(outputId = "distPlot")
)
})
}
shinyApp(ui, server)
## basic example code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.