function(input, output) {
pdf(output)
plot(1, 4, "l", main = input$Title, sub = input[["What is the subtitle?"]])
dev.off()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.