jittervar | R Documentation |
Jitters some variables in a data matrix.
jittervar(x,jitterv=NULL,factor=1)
x |
data matrix or data frame. |
jitterv |
vector of numbers of variables to be jittered. |
factor |
numeric. Passed on to |
data matrix or data frame with jittered variables.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
jitter
set.seed(776655)
v1 <- rnorm(20)
v2 <- rnorm(20)
d1 <- sample(1:5,20,replace=TRUE)
d2 <- sample(1:4,20,replace=TRUE)
ldata <- cbind(v1,v2,d1,d2)
jv <- jittervar(ldata,jitterv=3:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.