Nothing
library(shiny)
library(plotly)
ui <- fluidPage(
plotlyOutput("p"),
verbatimTextOutput("event")
)
data(Titanic)
titanic <- as.data.frame(Titanic)
titanic$Survived <- factor(titanic$Survived, levels = c("Yes", "No"))
server <- function(input, output, ...) {
output$p <- renderPlotly({
ggplot(data = titanic) +
geom_mosaic(aes(weight=Freq, x=product(Class), fill=Survived))
})
output$event <- renderPrint({
event_data("plotly_click")
})
}
shinyApp(ui, server)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.