Teaching

Coding dynamic dashboard applications (with R & Shiny)

Teaching material for a course on dynamic dashboards.

Sessions

Each session links to HTML slides and course material.

  1. Introduction to R/RStudio and the tidyverse (tidying with tidyr, wrangling with dplyr) Slides Sample notebook (Rmd) Sample notebook (html)
  2. Basic R instructions (matrices, dataframes, indexing, data modes) Slides Sample notebook Exercise notebook
  3. Plots (ggplot, gganimate, plotly) Slides Exercises (Rmd)
  4. Shiny 1 (User Interface & Server dialog) Slides Exercises Examples
  5. Shiny 2 (User Interface layout) Slides Exercises Examples
  6. Shiny 3 (Further options & deployment) Slides Examples
  7. Geocomputing, Twitter data & simple text mining Notebook for maps Notebook for Mastodon text analysis All files for the maps
  8. Modelling & case study All files (zipped)

Datasets

The datasets used in the course: songs, movies and olympics. Don’t forget to locate them in the app/notebook directory.

Diagram of the dialog between the user interface and the server in a Shiny app

Resources

The data and code are meant for pedagogical use only.