Learn R Programming

icesTAF (version 3.6.0)

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)

Value

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

Arguments

x

a vector of data values.

mult

a number to multiply with the highest data value.

See Also

icesTAF-package gives an overview of the package.

Examples

Run this code
plot(precip)
plot(precip, ylim=lim(precip))
plot(precip, ylim=lim(precip), yaxs="i")

Run the code above in your browser using DataLab