Log breaks (integer breaks on log-transformed scales).

log_breaks(n = 5, base = 10)

Arguments

n

desired number of breaks

base

base of logarithm to use

Examples

log_breaks()(c(1, 1e6))
#> [1] 1e+00 1e+02 1e+04 1e+06
log_breaks()(c(1, 1e5))
#> [1] 1 100 10000
log_breaks()(c(1664, 14008))
#> [1] 1000 3000 5000 10000 30000
log_breaks()(c(407, 3430))
#> [1] 300 500 1000 3000 5000
log_breaks()(c(1761, 8557))
#> [1] 1000 2000 3000 5000 10000