Shiny is an R package that makes it easy for us to build interactive web applications using R. It is available on CRAN and can be installed using:
install.packages("shiny")
Shiny's awesomeness can help us:
- Host standalone apps on a webpage or embed them in R Markdown documents or build dashboards
- embed CSS themes, htmlwidgets, and JavaScript actions within Shiny apps for flexibility
- develop highly interactive apps and output changes as users modify inputs, without requiring a reload of the browser
- tap into Shiny's very attractive user interfaces (based on Twitter Bootstrap) and the customizable slider widgets with support animations
- enjoy the super fast data transfer between a browser and R
- tap into the reactive programming model that helps us focus on the key application code without worrying about background subroutines and lots of code.
- develop interfaces for our R packages
- and lastly, build websites
The developed Shiny app is a supplementary implementation to Dean Attalis’s BC Liquor app
As a key deliverable for this assignment, the developed Shiny app is hosted at shinyapps.io and can be assessed through this link.
- **Image inclusion ** of the BC Liquor Store. Out of preference, this was added to my dashboardSidebar.
- Inclusion of an interactive table using
DT::renderDataTable()
from the DT package. Included was also a caption, title, a table style, change in text and column header colours, a specification of pageLength e.t.c. - Inclusion of a download button to allow users download the results.
- Inclusion of a additional plot parameters. Here I implemented the
colourpicker
package to select plot colors - Inclusion of dropdownMenus, icons and messages
- Inclusion of tabBox() and tabpanel() to have plots in different box tabs.
- Inclusion of CSS defined styles
- The usage of shinydashboard and most of its features skins. Themes were tested using
shinythemes::themeSelector()
Please visit the app for the implementation of more awesome features.
The code that generates my app can be found here
The dataset used to generate my Shiny app is available at OpenDataBC
Homework Files | Description |
---|---|
Link to homework8 | This file contains homework 8 tasks and their descriptions |
README.md | This readme.md file provides an overview of the ghist of this repo and provides useful pointers to key files in my homework-8 repo. Herein, are also links to past files that provide an introduction to data exploration and analysis |
Link to the developed Shiny app | This is the link to the developed Shiny app which is the main deliverable of this assignment. The app is deployed online on shinyapps.io |
app.R | This file contains the source code for the developed shiny app |
STAT 547M class notes on Shiny