Description Usage Arguments Value Examples
Constrain data to a specified range, assigning values from the specified range to those outside the range, typically for graphing purposes.
1 | constrain(x, xrange)
|
x |
A numeric vector of values to constrain. |
xrange |
A numeric vector of length two specifying the constraints, the minimum and
maximum value for |
A numeric vector, the same length as x
, in which the minimum
constraint is assigned to values of x
less than the minimum,
and the maximum constraint is assigned to values of x
greater than
the maximum.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.