Skip to contents

Default Min

Usage

default_min(org_min, org_max, new_min, f = c)

Arguments

org_min

original minimum value

org_max

original maximum value

new_min

new minimum value for replacement

f

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

Examples

default_min(org_min = 2, org_max = 100, new_min = 0.01, f = log10)
#> [1] 0.30103
default_min(org_min = 0, org_max = 100, new_min = 0.01, f = log10)
#> [1] -2
default_min(org_min = 2, org_max = 100, new_min = 0.01, f = log)
#> [1] 0.6931472
default_min(org_min = 0, org_max = 100, new_min = 0.01, f = log)
#> [1] -4.60517