jitter()函数:对数值向量添加一个小的噪音量. jitter(x,factor=1,amount=NULL) ·x:数值变量,需要加入噪音的数值向量: ·factor:数值型: ·amount: 例: > round(jitter(c(rep(1,3),rep(1.2,4),rep(3,3))),3) [1] 0.995 1.017 1.032 1.201 1.200 1.164 1.180 3.023 2.976 3.030 > jitter(rep(0,7)) [1] -0.0054…