R/numbers.R

near_ticks.Rd

the ticks near a number

near_ticks(x, level = NULL, div = 2)

number

the level of ticks, such as 1, 10, 100, etc.

number of divisions

number vector of ticks

near_ticks(3462, level = 10) #> [1] 3460 3465 3470