This function determines the scale of the y-axis for plot_epi.

find_scale(x)

Arguments

x

The maximum value found in the model state counts

Value

An integer representing the scale for the y-axis. A max counts value of 10000 will return a scale of 1, 100000 will return a scale of 1000, 1000000 will return a scale of 10000.

See also

Other Server side functions: plot_epi(), plot_reproductive_epi(), pop_generator()

Examples

find_scale(100000)
#> [1] 1000