lim | R Documentation |
Compute reasonable axis limits for plotting non-negative numbers.
lim(x, mult = 1.1)
x |
a vector of data values. |
mult |
a number to multiply with the highest data value. |
A vector of length two, which can be used as axis limits.
The lower limit is set to 0, and the upper limit is determined by the highest data value, times a multiplier.
TAF-package
gives an overview of the package.
plot(precip)
plot(precip, ylim=lim(precip))
plot(precip, ylim=lim(precip), yaxs="i")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.