find_scale: Find the right plotting-scale

View source: R/functions-server.R

find_scaleR 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)


epiworldRShiny documentation built on June 8, 2025, 1:45 p.m.