Generic Widget for Timeline Visualizations
Widget.RdCreates charts for each metric by applying a visualization function to stacked results data. The visualization function is specified as a string (e.g. "gsm.timez::Visualize_Heatmap") and resolved at runtime.
Usage
Widget(
dfResults,
strVisualizeFun,
strOutputLabel,
strIcon = NULL,
bInteractive = TRUE,
dfBounds = NULL,
...
)Arguments
- dfResults
A stacked data frame with a
MetricIDcolumn and all columns required by the visualization function.- strVisualizeFun
Character string specifying the visualization function to apply, including namespace (e.g., "gsm.timez::Visualize_Heatmap").
- strOutputLabel
Character string for the chart tab label in the report.
- strIcon
Optional Font Awesome icon name. If provided, the icon is prepended to the tab label.
- bInteractive
Logical. If
TRUE(default), creates fully interactive plotly charts. IfFALSE, creates static plotly charts (no zoom, pan, hover) which render faster and produce smaller HTML output. UseFALSEfor visualizations with many elements.- dfBounds
Optional data frame with a
MetricIDcolumn. When provided, it is filtered to the current MetricID and passed as the second positional argument to the visualization function, before.... Use this for functions likeVisualize_Funnel()that require a separate bounds data frame.- ...
Additional arguments passed to the visualization function.