#==============#
# Shiny Server #
#==============#
server <- function(input, output) {
output$histPlot <- renderPlot({
xx=rnorm(1000)
hist2(x=xx, breaks = input$bins)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.