source("R/utils/simple-plot.R")
myServer <- function(input, output, session) {
output$plot <- renderPlot({
simple_plot(cars, input)
})
output$summary <- renderPrint({
summary(cars)
})
output$table <- DT::renderDataTable({
DT::datatable(cars)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.