Building a shiny dashboard
Your shiny
web application can be drawn as a dashboard. Translating a column shiny
app to a dashboard version requires only small amounts of effort when you have the shinydashboard
package installed. This recipe's goal is to introduce you to how to combine shiny
and shinydashboard
packages to design a web application within the dashboard format.
Getting ready
Besides plotly
, Ecdat
, and dplyr
packages, we will also need the shinydashboard
package:
if(!require(shinydashboard)){install.packages('shinydashboard')} if(!require(plotly)){install.packages('plotly')} if(!require(Ecdat)){install.packages('Ecdat')} if(!require(dplyr)){install.packages('dplyr')}
The shiny
package is still a requirement. Once all these are ready, we can go on and design a dashboard.
How to do it...
Instead of using shiny
functions, the dashboards made by this recipe will greatly rely on functions designated by the shinydashboard
package instead. The logic beneath the shinydashboard
package is very...