find_scale {epiworldRShiny} | R Documentation |
Find the right plotting-scale
Description
This function determines the scale of the y-axis for plot_epi.
Usage
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)
[Package epiworldRShiny version 0.1-0 Index]