Applications can be enhanced by adding more toggles, more plots, and by exploring static HTML elements. More toggles and more elements can be added by simply calling more *Input()
and *Output()
functions separated by commas. The most popular static HTML elements have wrapper functions -- this recipe is using h3()
a lot.
This recipe designs a shiny
application with multiple toggles. Besides the Timeline
toggle, this recipe will also create a toggle to pick Hoover information and two more toggles to choose the vertical axis variable displayed by each figure (yes, there will be two plots now).
The requirements are the same as in the previous recipe, and are as follows:
> if(!require(plotly)){install.packages('plotly')} > if(!require(Ecdat)){install.packages('Ecdat')} > if(!require(dplyr)){install.packages('dplyr')}
Now we can work with the application.