Nothing
library(shiny)
library(plotly)
shinyServer(function(input, output, session) {
output$trendPlot <- renderPlotly({
if (length(input$name) == 0) {
print("Please select at least one country")
} else {
df_trend <- ideal[ideal$Name == input$name, ]
ggplot(df_trend) +
geom_line(aes(x = Year, y = Ideal.point, color = Name)) +
labs(x = "Year", y = "Ideology", title = "Ideal Points for Countries") +
scale_colour_hue("clarity", l = 70, c = 150) + ggthemes::theme_few()
}
})
})
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.