Barplot visualising the number of cases and information about any signals
plot_barchart.Rd
Bars showing number of cases and coloring around the bar showing whether any signal was generated in the last n weeks for this stratum
Arguments
- signals_agg
tibble, aggregated signals which can be obtained from using the function
aggregate_signals
. It contains the number of cases, any_alarms and n_alarms for one category, i.e. age group summed over the number of weeks used inaggregate_signals
.- interactive
boolean identifying whether the plot should be static or interactive
- toggle_alarms
boolean identifying whether the plot should showing number of signals explicitly or only when hovering
- partial
logical, add partial bundle to plotly
Examples
if (FALSE) { # \dontrun{
signals_agg_sex <- input_example %>%
preprocess_data() %>%
get_signals(stratification = c("sex")) %>%
aggregate_signals(number_of_weeks = 12)
plot_barchart(signals_agg_sex)
} # }