Learn R Programming

icesTAF (version 3.1-1)

lim: Axis Limits

Description

Compute axis limits. The lower limit is 0 and the upper limit is determined by the highest data value, times a multiplier.

Usage

lim(x, mult = 1.1)

Arguments

x

a vector of data values.

mult

a number to multiply with the highest data value.

Value

A vector of length two, which can be used as axis limits.

See Also

icesTAF-package gives an overview of the package.

Examples

Run this code
# NOT RUN {
plot(precip)
plot(precip, ylim=lim(precip))
plot(precip, ylim=lim(precip), yaxs="i")

# }

Run the code above in your browser using DataLab