University of Melbourne · FACULTY OF DATA SCIENCE

GEOM90007 Chap.12 Shiny and Reactive Visualisation

- one subject, every graph, every model, every mark
5 Chapters2-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 12 of 13 · GEOM90007

Shiny and Reactive Visualisation

Define reactive programming

Shiny and Reactive Visualisation connects reactive programming, Shiny application and interaction state along an information-visualisation pipeline: data type, visual encoding, perception, task fit and evaluation.

The practical aim is to design a minimal reactive path and make defaults, loading states and selected data visible; the display is defensible only when each encoding choice can be traced back to the analytical question and the structure of the data.

Place reactive programming at its correct stage: question, data specification, transformation, encoding, perception, tool or evaluation.

For reactive programming, record the variables, measurement levels, granularity, missingness and comparison task wherever they apply before choosing or judging a chart.

Use Shiny application to make the next transformation, encoding, layout, interaction or evaluation step explicit.

When Shiny application involves marks and channels, state which values they represent and check whether scale, ordering, aggregation or filtering changes the apparent pattern.

Use interaction state to test perceptual and task fit.

In Shiny and Reactive Visualisation, ask whether viewers can make the required comparison accurately, whether uncertainty and exceptions remain visible, and whether colour, position, motion or interaction creates an avoidable accessibility or interpretation cost.

Trace Shiny application

For the application — design a minimal reactive path and make defaults, loading states and selected data visible — compare at least one alternative encoding against the same data and task.

Retain the design only if the interaction state evaluation shows that it reveals the intended relationship without introducing a stronger distortion or hiding the evidence needed to challenge it.

Make a compact pipeline audit for reactive programming: question or data field; transformation; mark and visual channel where applicable; intended task; evaluation evidence; and likely failure.

Locate Shiny application and interaction state at their actual stages so a technically valid implementation is not mistaken for an effective display.

Test a changed Shiny application view. Hold the data and question stable, replace the channel most closely tied to Shiny application, and predict which comparison becomes easier or harder.

Evaluate the result with interaction state, including uncertainty, accessibility and the possibility that an apparent pattern is produced by scale, binning, projection or interaction state.

Critique Shiny and Reactive Visualisation in task order: state the question around reactive programming, classify the data, describe the role of Shiny application, predict the perceptual judgement and report the interaction state evaluation evidence.

Revise the first stage where interaction state shows that the visual no longer supports the task instead of adding decoration to a structurally unsuitable chart.

Test with interaction state

A complete response should make the task visible before the detail: identify what must be decided, define the relevant terms, connect the evidence to Shiny application, and use interaction state to test the result.

The final sentence about interaction state should answer the question actually asked rather than merely repeat the topic.

The controlling limit is specific: Interactivity should not make an analysis non-auditable or allow incompatible filter combinations without feedback.

Keep that interaction state limit beside the worked example, because it separates a careful GEOM90007 answer from one that sounds confident but claims more than the task or evidence supports.

For revision, retrieve reactive programming, Shiny application and interaction state without notes, explain their relationship aloud, then complete a changed version of the application: design a minimal reactive path and make defaults, loading states and selected data visible.

Record the first failed Shiny application reasoning move and repair it before attempting another case.

In this chapter

What this chapter covers

  • 01

    reactive programming

  • 02

    Shiny application

  • 03

    interaction state

  • 04

    Applying reactive programming

  • 05

    Limits of Shiny application and interaction state

Worked example · free

Worked example: Shiny and Reactive Visualisation

Q [4 marks]. A draft chooses a response merely because reactive programming appears in a task about how to design a minimal reactive path and make defaults, loading states and selected data visible. Use Shiny application and interaction state to test whether that choice is defensible. This is AskSia-authored practice, not a University question or marking scheme.
  • 1Extract the outcome, actor or operation that the Shiny and Reactive Visualisation task actually requires.
  • 1State the precondition under which reactive programming is relevant rather than merely familiar.
  • 1Use Shiny application to reject the nearest alternative, then run a failure-path check with interaction state.
  • 1Choose the response and state when it must be withdrawn or narrowed: Interactivity should not make an analysis non-auditable or allow incompatible filter combinations without feedback.
The choice follows from the task's required outcome and the precondition attached to reactive programming, not from keyword recognition. The response uses Shiny application to distinguish the nearest alternative and interaction state tests the failure path. The response changes when this boundary is crossed: Interactivity should not make an analysis non-auditable or allow incompatible filter combinations without feedback.
Sia tip — Interactivity should not make an analysis non-auditable or allow incompatible filter combinations without feedback.
Glossary

Key terms

reactive programming
A programming model in which outputs automatically update when the input values or dependencies they use change. Use this definition when the task is to design a minimal reactive path and make defaults, loading states and selected data visible.
Shiny application
An R-based interactive web application connecting user-interface inputs to reactive data, analysis and visual outputs. Use this definition when the task is to design a minimal reactive path and make defaults, loading states and selected data visible.
interaction state
The current values of filters, selections and controls that determine what an interactive visualisation displays. Use this definition when the task is to design a minimal reactive path and make defaults, loading states and selected data visible.
FAQ

Shiny and Reactive Visualisation FAQ

What is the main task in Shiny and Reactive Visualisation?

Design a minimal reactive path and make defaults, loading states and selected data visible.

How do reactive programming and Shiny application work together?

Use reactive programming to establish the object or condition, then use Shiny application to explain how it changes the outcome being analysed.

What must a GEOM90007 answer qualify here?

Interactivity should not make an analysis non-auditable or allow incompatible filter combinations without feedback.

How should I revise Shiny and Reactive Visualisation?

Retrieve reactive programming, Shiny application and interaction state, apply them to a changed case, and correct the first point where the evidence no longer supports the conclusion.

Study strategy

Assessment move

Reconstruct the relationship among reactive programming, Shiny application and interaction state; complete the chapter application without notes; then test the result against this limit: Interactivity should not make an analysis non-auditable or allow incompatible filter combinations without feedback.

Working through Shiny and Reactive Visualisation in GEOM90007? Sia is AskSia’s AI Data Science tutor — ask any GEOM90007 Shiny and Reactive Visualisation question and get a clear, step-by-step explanation grounded in how GEOM90007 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 126 of your University of Melbourne subjects - and 1,000+ Bibles across every Australian university.
Sia - your GEOM90007 tutor, unlimited, worked the way the exam marks it
The full 2-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works