Skip to contents

Default Max

Usage

default_max(org_max, new_max, f = c)

Arguments

org_max

original maximum value

new_max

new maximum value for replacement

f

function apply on "org_max" to transform to the correct dimension (e.g. "log" in case of "lognorm" or "log10" in case of log10_norm) (default: c())

Examples

default_max(org_max = 2, new_max = 0.01, f = log10)
#> [1] 0.30103
default_max(org_max = 0, new_max = 0.01, f = log10)
#> [1] -2
default_max(org_max = 2, new_max = 0.01, f = log)
#> [1] 0.6931472
default_max(org_max = 0, new_max = 0.01, f = log)
#> [1] -4.60517