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

PrettyTicks

Calculates loose axis ticks and labels using nice numbers


Description

Calculates axis ticks and labels using nice numbers

Usage

PrettyTicks(min = -3, max = 3, ntick = 5)

Arguments

min

Minimum value on the axis

max

maximum value on the axis.

ntick

Approximated number of desired ticks

Details

Calculates axis ticks and labels using nice numbers. The resulting labels are known as loose labels.

Value

A list with the following fields

ticks

Ticks for the axis

labels

The corresponding labels

Author(s)

Jose Luis Vicente Villardon

References

Heckbert, P. S. (1990). Nice numbers for graph labels. In Graphics Gems (pp. 61-63). Academic Press Professional, Inc..

See Also

Examples

PrettyTicks(-4, 4, 5)

MultBiplotR

Multivariate Analysis Using Biplots in R

v1.3.30
GPL (>= 2)
Authors
Jose Luis Vicente-Villardon
Initial release
2021-03-30

We don't support your browser anymore

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