This course will focus on building web-based applications in Shiny. Shiny is a framework in R that allows users to produce interactive, web-based visualizations and applications that rely on R for computation and rendering. The course will pull from a few different texts. Luckily, those texts are freely available online. They are:
- Mastering Shiny by Hadley Wickham
- Engineering Production-Grade Shiny Apps by Colin Fay, Vincent Guyader, Cervan Girard, Sébastien Rochette
- Interactive Web-based Visualization with R, plotly and Shiny by Carson Sievert
The course will include a mix of content including
- Synchronous, live lectures (which will also be recorded for later viewing)
- Synchronous, live labs (which will also be recorded for later viewing)
I will be using RStudio in the course and you should, too. There are lots of other text editors/IDEs out there, but none of them have all of the functionality that RStudio has with respect to Shiny. I am using the current version of R (as of this writing 4.0.0) and RStudio 1.2.5.
Here are some examples of the visualizations we’re going to build:
Diamonds |
COVID-19 Ohio (Crosstalk) |
|
---|---|---|
Histogram (with introJS walkthrough) |
COVID-19 Ohio (State Selector) |
|
---|---|---|
The materials for the workshop are broken up into four parts.
Part 1: Interactivity with Plotly and HTML/Javascript
- Slides html (or download a static pdf of the slides)
- Only plots and code html
- R code and data for slides zip
- Live code file from Day 1 rmd
Part 2: Interactive Dashboards
- Slides html (or download a static pdf of the slides)
- Only plots and code html
- R code and data for slides zip
Part 3: Shiny Dashboards and Apps
- Slides html (or download a static pdf of the slides)
- R code and data for slides **zip
- Live code file from Day 2 rmd
Part 4: Shiny Miscellany - Debugging, Styling, etc…
- Slides html (or download a static pdf of the slides)
- Twitter apps zip [Note, you’ll need your own API key for this to work]
- Live code file from day 3 r
- Walk throughs with
rintrojs
(see the video below)- Get the app code r