Description Usage Examples
Calculate offsets for plotting y ~ x scatter plots where y is continuous and x is categorical
1
splitter(y, x = NULL, rad = 0.025, scale = TRUE)
1 2 3 4
rx <- ceiling(runif(250, 0, 5)) ry <- rnorm(250, 0, 100)+runif(5, 0, 2000)[rx] offset <- splitter(ry, rx) plot(offset+as.numeric(rx), ry, pch=20, col=rainbow(5)[rx])
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.