mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
423 B
423 B
Easily round log scale limits for nice plots
Easily round log scale limits for nice plots
Usage
limit_log(data, fun, ...)
Arguments
-
data:
data
-
fun:
rounding function (floor/ceiling)
-
...:
ignored
Value
numeric vector
Examples
limit_log(-.1, floor)
#> [1] 0.7
limit_log(.1, ceiling)
#> [1] 2
limit_log(-2.1, ceiling)
#> [1] 0.008
limit_log(2.1, ceiling)
#> [1] 200