flowchart LR
A["Open the app"] --> B["Choose a module"]
B --> C["Configure inputs"]
C --> D["Render outputs"]
D --> E["Interpret results"]
E --> F["Download or compare"]
B --> M1["Time Series Visual Analysis"]
B --> M2["Time Series Clustering"]
B --> M3["Forecasting"]
UI Storyboard
App Flow
Module 1: Time Series Visual Analysis
flowchart LR
A["Select a tourism series"] --> B["Choose the lookback window"]
B --> C["Toggle monthly points"]
C --> D["Render the comparison chart"]
D --> E["Inspect the metadata table"]
UI Layout
Left Panel
- Country or mode selector
- Lookback-year selector
- Show-points toggle
- Module guidance text
Right Panel
- Time-series view
- Metadata table
- Read-this-first guidance card
Module 2: Time Series Clustering
flowchart LR
A["Select a set of country series"] --> B["Pick a focus market"]
B --> C["Set the year window and normalization"]
C --> D["Choose k and run clustering"]
D --> E["Read the dashboard"]
E --> F["Inspect pattern explorer"]
F --> G["Check focus market placement"]
G --> H["Download assignments"]
UI Layout
Left Panel
- Series family selector
- Country multi-select
- Focus market selector
- Time window selector
- Normalization mode
- Cluster count slider
- Run clustering button
- Reading guide describing how to navigate the module
Right Panel
Dashboardtab: quality strip, insight card, pattern atlas, cluster profile, recovery position map, silhouette scan, focus comparison, and priority-market placementPattern Explorertab: representative pattern plot plus pattern summary chipsFocus Market in Contexttab: focused recovery position map, cluster explorer, and placement narrativeAssignmentstab: membership table, assignment download, cluster summary, and series metrics
Module 3: Forecasting
flowchart LR
A["Select a target series"] --> B["Set the forecast horizon"]
B --> C["Choose the model set"]
C --> D["Run forecasting"]
D --> E["Review the forecast plot and accuracy table"]
D --> F["Inspect tourism context, seasonality, and decomposition"]
UI Layout
Left Panel
- Target series selector
- Forecast horizon slider
- Model selection checklist
- Run forecast button
Right Panel
Forecast Plottab: holdout comparison, accuracy table, split summaryTourism Performance Contexttab: arrivals versus hotel/stay indicatorsTrend and Seasonaltab: raw series and seasonal patternDecompositiontab: trend, seasonal, remainder viewForecast Notestab: interpretation guide
UI Component Mapping
| UI Need | Shiny Component | Reason |
|---|---|---|
| Multi-series comparison | selectInput / pickerInput |
flexible series selection |
| Time window control | dateRangeInput |
clear start and end selection |
| Raw vs indexed vs share view | radioButtons |
mutually exclusive display modes |
| Clustering parameter tuning | sliderInput |
fast constrained control |
| Model execution | actionButton |
avoid unnecessary reruns |
| Output tables | DT::datatable |
sortable and filterable |
Usability Notes
- Keep the module order aligned with the final website: visual analysis, clustering, forecasting.
- Keep the labels domain-driven and consistent across Proposal, storyboard, and app.
- Use the same country names, date windows, and color semantics in all modules.
- Make the interaction flow simple enough that users can move from exploration to comparison to forecasting without losing context.