ICPSR Summer Program Teaching

Interactive Visualization with Shiny

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:

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

Part 2: Interactive Dashboards

Part 3: Shiny Dashboards and Apps

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