ABSTRACT

Shiny allows us to create a graphical user interface (GUI) that can be used locally or remotely. It has great potential for making interactive, web-based visualizations much more accessible to users. This chapter looks at how to connect “plotly” graphs to “shiny,” an open-source R package that provides an elegant and powerful web framework for creating R-based web applications. Shiny allows us to turn the data into interactive web applications without having to know HTML, CSS, or JavaScript. The R expression can be thought of as a set of instructions that we give Shiny to remember. When the application is first launched, Shiny will run the instructions with default input, and then it will run them again every time the input changes.