Learn R Programming

swash (version 1.1.0)

plot_regions-methods: Methods for Function plot_regions

Description

Methods for function plot_regions

Arguments

Methods

signature(object = "sbm", col = "red", scale = FALSE, normalize_by_col = NULL, normalize_factor = 1)

Plots regional infection curves in \(N\) plots for \(N\) regions, with the number of columns equals 4 and the number of rows is calculated based the size of \(N\). Set the color by the argument col. If scale is TRUE, the y axis of the plots is set uniformly based on the maximum value across all regions. If the input data contains a column to normalize the infection numbers (such as regional population), the user may use this data to normalize the infection numbers by setting normalize_by_col. If this density value should be multiplied by a factor (e.g. regional infections per 100,000 inhabitants), this can be set with the argument normalize_by_col (default: 1).

Author

Thomas Wieland