View source: R/preprocess-utils.R
threshold | R Documentation |
Threshold the values of a numeric vector according to user-specified limits. Values exceeding the threshold are reset to the threshold and jittered by an amount specified by the user to reduce overplotting.
threshold(x, lim = c(-Inf, Inf), amount = 0)
x |
numeric vector |
lim |
numeric vector of length 2 indicating the values at which to threshold |
amount |
scalar indicating how much to jitter the points at the threshold. |
jitter
x <- rnorm(10)
threshold(x, c(-0.5,0.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.