library(reportsWS) textInput(inputId = "name", label = "Type a name", value = "Garrett") actionButton("go", "Go") bnames <- eventReactive(input$go, { get_babyname(input$name, "M") }) renderPlot({ plot(bnames()$year, bnames()$n, type = "l") })
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.