Learn R Programming

labeling (version 0.4.3)

wilkinson: Wilkinson's labeling algorithm

Description

Wilkinson's labeling algorithm

Usage

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))

Value

vector of axis label locations

Arguments

dmin

minimum of the data range

dmax

maximum of the data range

m

number of axis labels

Q

set of nice numbers

mincoverage

minimum ratio between the the data range and the labeling range, controlling the whitespace around the labeling (default = 0.8)

mrange

range of m, the number of tick marks, that should be considered in the optimization search

Author

Justin Talbot justintalbot@gmail.com

References

Wilkinson, L. (2005) The Grammar of Graphics, Springer-Verlag New York, Inc.