source("global.R")
function(input, output) {
set.seed(122)
histdata <- rnorm(500)
output$plot1 <- renderPlot({
data <- histdata[seq_len(input$slider)]
hist(data)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.