Visualize Flagged Months by Site
Visualize_Heatmap.RdCreates a heat map of site flags over time.
Arguments
- dfFlagged
A data frame output from
Flag()applied toAnalyze_TimeZFunnel()output. Must contain columns:GroupID,NMonth, andFlag. Must also carryvFlagattribute (set byFlag()).- nSites
Integer or
NULL. Maximum number of sites to display. Sites are ranked by: (1) whether they were flagged in the most recent evaluated month, (2) total number of flagged months, (3)GroupIDalphabetically. WhenNULL(the default) all sites are shown and no title is added to the plot.
Value
A ggplot2::ggplot() object.
See also
Analyze_TimeZFunnel() for calculating funnel scores,
Flag() for assigning flag categories.