Learn R Programming

berryFunctions (version 1.22.5)

runAxis: Label axis with typical running times

Description

Label a numerical axis (in minutes) with time units that are typical for running times (10 sec intervals)

Usage

runAxis(t = 3 * 60, int1 = 10, int2 = 5, side = 1, linarg = NULL, ...)

Value

List with the positions and labels

Arguments

t

Maximum time in minutes

int1

Primary interval (for labels)

int2

Secondary interval (for lines)

side

Side of the plot to draw axis (1,2,3,4 = bottom, left, top, right)

linarg

List of arguments passed to abline

...

Further arguments passed to axis

Author

Berry Boessenkool, berry-b@gmx.de, Jun 2016

See Also

logAxis, monthAxis

Examples

Run this code
plot(1:200, xaxt="n")
runAxis(t=200, int1=20, int2=10)

Run the code above in your browser using DataLab