`r lifecycle::badge("stable")`
A widget that generates a table of flags over time using [Report_FlagOverTime()].
Arguments
- dfResults
`data.frame` A stacked summary of analysis pipeline output. Created by passing a list of results returned by [Summarize()] to [BindResults()]. Expected columns: `GroupID`, `GroupLevel`, `Numerator`, `Denominator`, `Metric`, `Score`, `Flag`, `MetricID`, `StudyID`, `SnapshotDate`.
- dfMetrics
`data.frame` Metric-specific metadata for use in charts and reporting. Created by passing an `lWorkflow` object to [MakeMetric()]. Expected columns: `File`, `MetricID`, `Group`, `Abbreviation`, `Metric`, `Numerator`, `Denominator`, `Model`, `Score`, and `Threshold`. For more details see the Data Model vignette: `vignette("DataModel", package = "gsm.core")`.
- strGroupLevel
`character` Value for the group level. Default: "Site".
- strFootnote
`character` Text to insert for figure
- bExcludeEver
`logical` Exclude options in widget dropdown that include the string "ever". Default: `FALSE`.
- strOutputLabel
`character` Label describing the output object, which is assigned to the `output_label` attribute of the output object and appears in the report generated by [gsm.kri::Report_KRI()]..
- bDebug
`logical` Print debug messages? Default: `FALSE`.
Examples
# Include all risk signals, irrespective flag value.
Widget_FlagOverTime(
dfResults = gsm.core::reportingResults,
dfMetrics = gsm.core::reportingMetrics
)
# Include risk signals that were ever flagged.
Widget_FlagOverTime(
dfResults = FilterByFlags(
gsm.core::reportingResults
),
dfMetrics = gsm.core::reportingMetrics
)
# Include risk signals that were only flagged in the most recent snapshot.
Widget_FlagOverTime(
dfResults = FilterByFlags(
gsm.core::reportingResults,
bCurrentlyFlagged = TRUE
),
dfMetrics = gsm.core::reportingMetrics,
bExcludeEver = TRUE
)