Case Studies: Building Web Applications with Shiny in R
Dean Attali
Shiny Consultant
library(colourpicker)colourInput("col", "Select a colour", value = "orange")

plotOutput(outputId, width = "100%", height = "400px",
click = NULL, dblclick = NULL, hover = NULL,
hoverDelay = NULL, hoverDelayType = NULL,
brush = NULL, clickId = NULL, hoverId = NULL,
inline = FALSE)
plotOutput("plot1", width = 200, height = 400)
plotOutput("plot2", width = 400, height = 200)

plotly is popular choiceggplotly():ggplot2 plot ⇒ interactivep <- ggplot(gapminder, aes(gdpPercap, lifeExp)) + geom_point() + scale_x_log10()library(plotly)ggplotly(p)

plotly is popular choiceggplotly():ggplot2 plot ⇒ interactivep <- ggplot(gapminder, aes(gdpPercap, lifeExp)) + geom_point() + scale_x_log10()library(plotly)ggplotly(p)

plotly is popular choiceggplotly():ggplot2 plot ⇒ interactivep <- ggplot(gapminder, aes(gdpPercap, lifeExp)) + geom_point() + scale_x_log10()library(plotly)ggplotly(p)

plotly is popular choiceggplotly():ggplot2 plot ⇒ interactivep <- ggplot(gapminder, aes(gdpPercap, lifeExp)) + geom_point() + scale_x_log10()library(plotly)ggplotly(p)

plotOutput("plot")
renderPlot(ggplotly(p))
plotlyOutput("plot")
renderPlotly(ggplotly(p))
Case Studies: Building Web Applications with Shiny in R