[Questioning] Used to return a summary plot across regions (using results generated by summarise_results). May be depreciated in later releases in favour of enhanced S3 methods.

plot_summary(summary_results, x_lab = "Region", log_cases = FALSE, max_cases)

Arguments

summary_results

A data.table as returned by summarise_results (the data object).

x_lab

A character string giving the label for the x axis, defaults to region.

log_cases

Logical, should cases be shown on a logged scale. Defaults to FALSE

max_cases

Numeric, no default. The maximum number of cases to plot.

Value

A ggplot2 object