Skip to main content

Interactivity with Shiny Apps

Interactive Shiny web applications in R, covering UI/server structure, reactivity, single- versus two-file app organization, and options for sharing apps.
shiny
dashboards
data-visualization
lecture
intermediate
LearningLearning Objectives

After completing this session, you will be able to:

  • Define the key components of a Shiny application (UI, server, reactivity)
  • Create a single-file Shiny app using modern bslib layouts
  • Apply the three rules for building reactive server outputs
  • Use reactive() to create reactive data objects in the server
  • Compare single-file and two-file app structures
  • Identify options for sharing Shiny apps with others

1 Overview

Shiny is an R package that turns your analyses into interactive web applications, without requiring web development experience. For practicing scientists and managers, this opens up real possibilities: imagine building an app that lets stakeholders explore water quality trends over time, filter fish species occurrence records by season or location, or see how monitoring outcomes compare across management scenarios – all through a browser, with no R knowledge required on their end.

In this session, we’ll build interactive data apps from scratch using water quality and fish catch data from the Yolo Bypass Fish Monitoring Program. By the end of the core session, you’ll have a working reactive Shiny app and the foundation to start building your own for the group projects.