plotUI = function(id) {
ns = shiny::NS(id)
tagList(
fluidRow(
h2('My plot'),
plotOutput(ns('myplot'))
)
)
}
plotServer = function(input, output, session) {
output$myplot = renderPlot({
plot(1:20)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.