Learn R Programming

berryFunctions (version 1.11.0)

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

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

Value

List with the positions and labels

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