← All Data Visualization with AI modules
Module 12 · Project 6 · Due the date on Canvas · Interactive Dashboards with Shiny · adaptive competency DV20

Interactive Dashboards with Shiny

Build a reactive dashboard that answers a decision question, preserves denominators, protects small groups, and explains every change on screen. A dashboard is a decision instrument whose design should follow from the decision it supports (Sarikaya et al., 2019). The checks on these pages run in the browser. The Shiny app in step 4 does not run here. Running it in a local R session with shiny and ggplot2 installed is optional; nothing in Module 12 requires it.

What to do for Canvas Project 6
  1. Work through Module 12 and save its required evidence and files.
  2. Complete the associated workspaces: Module 10, Module 11, Module 12. Previously earned completion remains valid; additional work is optional review.
  3. Open Project 6, check the packet status, and optionally download Project_6_Canvas_Packet.zip. For Canvas, upload at least one artifact from your work or a screenshot of your grade. The full ZIP is optional. A download is not a Canvas submission. Submit by the date on Canvas, only if you have not already submitted.

QuantegyAI feedback does not submit to Canvas.

9module steps
4interactive builds
1Shiny defense
86–108minutes
Recorded checkpoint coverage0%

Begin by defining a KPI that can be reproduced.

Begin Shiny mission

By the end of this module, you will be able to

Focus questions

Keep these questions in mind as you work through the module. Answer them in your guided notes, and use them to decide what belongs on your reference card.

  1. How does the identity \( r-\bar r=\sum_g (w_g-1/G)(r_g-\bar r) \) show when the pooled rate and the mean of group rates coincide, and when the pooled rate is the larger of the two?
  2. For a filtered cell with \( x \) passes among \( n \) tested students, how would you compute the Wilson score interval, and what would its width imply about reporting a cell that meets the minimum size?
  3. When several outputs need the same filtered data, why is one shared reactive expression preferable to repeating the filter inside each output, and how does propagating invalidation before recomputation keep those outputs consistent?
Your evidence map

DV20

0 XP
DV20Define reproducible KPIsReady to begin
DV20Trace reactive dependenciesLocked
DV20Design safe filter statesLocked
DV20Debug a Shiny appLocked
DV20Verify outputs in RLocked
DV20Defend dashboard decisionsLocked

Student learning outcomes

By the end of Module 12, students can…
  1. Define dashboard KPIs with an explicit numerator, denominator, window, and exclusion rule.
  2. Map a Shiny app’s reactive dependency graph from inputs through reactive expressions to outputs.
  3. Compute pooled rates from summed counts and explain why averaging percentages answers a different question.
  4. Test filter states for empty data, unstable denominators, and small-cell disclosure — and apply suppression rules.
  5. Debug reactive code and verify every displayed value from source counts in R.

Module 12 step by step

Each step below is a separate short page. Work through them in order; progress is saved as you go, and the numbered bar at the top of every page links directly to any step.

  1. 1DefineMathematics refresh: define the rate before styling the tile
  2. 2ReactWire the reactive graph
  3. 3FilterTest the dashboard under empty and small-cell filter states
  4. 4BuildDebug the Shiny app before publication
  5. 5AI auditAI-output audit
  6. 6Verify in RVerify dashboard outputs in browser R
  7. 7DefendDefend an interactive decision dashboard
  8. 8SubmitSubmit the Module 12 graded assignment
  9. 9Prove masteryProve mastery