Visualize Single Site Trajectory with Flag Indicators
Visualize_Site.RdCreates a line plot highlighting a single site's cumulative metric trajectory against all other sites, with colored dots marking flagged months.
Arguments
- dfFlagged
A data frame output from
Flag()containing columns:GroupID,NMonth,Metric,Flag, and (whendfBoundsis provided)Denominator. Must carryvFlagandvThresholdattributes (set bygsm.timez::Flag()).- dfBounds
Optional. A data frame with pre-calculated funnel bounds from
PredictBounds_TimeZFunnel(). If provided, inner threshold lines are drawn for the selected site based on its denominator at each month. IfNULL(default), no bounds are shown.- strSiteID
Character string specifying the site ID to highlight. Must exist in
dfFlagged$GroupID.
Value
A ggplot2::ggplot() object.
See also
Flag() for assigning flag categories,
PredictBounds_TimeZFunnel() for calculating bounds,
Visualize_Heatmap() for the heat map visualization.