Learn R Programming

TAF (version 4.2.0)

lim: Axis Limits

Description

Compute reasonable axis limits for plotting non-negative numbers.

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

TAF-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