library(shiny)
ui <- fluidPage(
"Um histograma",
plotOutput(outputId = "hist", height = "500px"),
"Esse é o nosso app!"
)
server <- function(input, output, session) {
output$hist <- renderPlot({
hist(mtcars$mpg)
})
}
shinyApp(ui, server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.