powered by
Generate partly random, partly constrained lateral displacements based on Tukey texture algorithm from Tukey and Tukey 1990
tukeyTexture( x, jitter = TRUE, thin = FALSE, hollow = FALSE, delta = diff(stats::quantile(x, c(0.25, 0.75))) * 0.03 )
a vector of length length(x) giving displacements for each corresponding point in x
the points to be jittered. really only used to calculate length
if TRUE add random jitter to each point
if TRUE then push points to the center in thin regions
if TRUE then expand points outward to avoid ``hollowness''
a ``reasonably small value'' used in edge straightening and thinning
x<-rnorm(200) plot(tukeyTexture(x),x) x<-1:100 plot(tukeyTexture(x),x) plot(tukeyTexture(log10(counties$landArea),TRUE,TRUE),log10(counties$landArea),cex=.25)
Run the code above in your browser using DataLab