calculates pretty(x), then removes the values that do not lie within
range(x). If force=TRUE, range(x) is reduced step by step
in a while loop until the condition is met. This is useful if you want
exactly 2 labels on an axis. In order not to get stuck, the
outer values are taken if there are more than n values within range(x).