server = function(input, output, session) {
output$plotreplace <- renderPlot({
par(mar = c(0,0,0,0))
input$evalreplace
return(isolate(eval(parse(text=input$replaceplot))))
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.