Description Usage Arguments Details Examples
If a value lies outside of some range, then this will snap to the limits
1 | clip_range(x, min = NULL, max = NULL)
|
x |
numeric or integer value or vector of values |
min |
lower limit |
max |
upper limit |
Applies to vectors too
1 2 3 | # snaps the vector below to the limits set
x <- c(-2,0,0.5,1, 1.25)
clip_range(x, 0, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.