server = function(input, output, session) {
observeEvent(input$evalfig1, {
output$plotfig1 <- renderPlot({
return(isolate(eval(parse(text=input$fig1plot))))
})
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.