range(..., na.rm=F)
NA
s) are allowed.
na.rm=
form.
NA
s in the input result in
NA
s in the output unless
na.rm=TRUE
.
This is part of the
Summary
group of generic functions -- see
Methods
.
This function is useful as an argument to plotting when it is
desired to specify the limits for the x- or y-axes.
(See the plot example.)
plot(x, y, ylim=range(y, 0, 1)) # force y-axis to include (0, 1) diff(range(x)) # distance between max and min