Wilkinson's labeling algorithm
wilkinson(dmin, dmax, m,
Q = c(1, 5, 2, 2.5, 3, 4, 1.5, 7, 6, 8, 9),
mincoverage = 0.8,
mrange = max(floor(m/2), 2):ceiling(6 * m))
minimum of the data range
maximum of the data range
number of axis labels
set of nice numbers
minimum ratio between the the data range and the labeling range, controlling the whitespace around the labeling (default = 0.8)
range of m
, the number of tick
marks, that should be considered in the optimization
search
vector of axis label locations
Wilkinson, L. (2005) The Grammar of Graphics, Springer-Verlag New York, Inc.