Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extended

An Extension of Wilkinson's Algorithm for Position Tick Labels on Axes


Description

extended is an enhanced version of Wilkinson's optimization-based axis labeling approach. It is described in detail in our paper. See the references.

Usage

extended(dmin, dmax, m, Q = c(1, 5, 2, 2.5, 4, 3),
    only.loose = FALSE, w = c(0.25, 0.2, 0.5, 0.05))

Arguments

dmin

minimum of the data range

dmax

maximum of the data range

m

number of axis labels

Q

set of nice numbers

only.loose

if true, the extreme labels will be outside the data range

w

weights applied to the four optimization components (simplicity, coverage, density, and legibility)

Value

vector of axis label locations

Author(s)

Justin Talbot justintalbot@gmail.com

References

Talbot, J., Lin, S., Hanrahan, P. (2010) An Extension of Wilkinson's Algorithm for Positioning Tick Labels on Axes, InfoVis 2010.


labeling

Axis Labeling

v0.4.2
MIT + file LICENSE | Unlimited
Authors
Justin Talbot,
Initial release
2020-10-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.