View source: R/structure_suggest.R
suggest_layout_from_previous | R Documentation |
Automatically suggests an appropriate layout type based on content analysis of previous BID stages. Uses deterministic heuristics to match keywords in problem descriptions, evidence, data story, and other contextual information to layout types that best address the identified issues.
suggest_layout_from_previous(previous_stage)
previous_stage |
A tibble or list output from an earlier BID stage function containing stage data with potential fields like problem, evidence, central_question, data_story, etc. |
The heuristics follow a priority order:
breathable - if content suggests information overload, confusion, or cognitive load issues
dual_process - if content mentions overview vs detail, quick vs deep, or two-mode interactions
grid - if content focuses on grouping, clustering, visual hierarchy, or comparing related metrics
card - if content mentions cards, chunks, tiles, modular blocks, or per-item summaries
tabs - if content suggests sections, categories, progressive disclosure, but avoids tabs if telemetry shows tab drop-off
breathable - fallback for any unmatched cases
Character string indicating the suggested layout type ("breathable", "dual_process", "grid", "card", "tabs", or fallback)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.