# find four breaks from 1 to 100
find_breaks(100)
# find four breaks from 1 to 123, rounding to the nearest 20
find_breaks(123, snap = 20)
# note that there are only three breaks here because of the rounding
find_breaks(123, snap = 25)
# Include the value itself
find_breaks(123, snap = 25, ceiling = TRUE)
Run the code above in your browser using DataLab