View source: R/jitter.xyplot.R
jitter.xyplot | R Documentation |
Make boxplots or dotplots with jitters of the size proportional to the sample size. See examples.
jitter.xyplot(x, y, N = 20, factor = 1, ...)
x |
X-axis variable, numeric or factor |
y |
Y-axis variable, numeric |
N |
Number of groups that y-axis should be cut |
factor |
Jitter factor, passed to jitter |
... |
Other parameters passed to |
Side effects are used.
Jitao David Zhang <jitao_david.zhang@roche.com>
library(lattice)
testX <- gl(8,5)
testY <- rnorm(40)
xyplot(testY ~ testX)
xyplot(testY ~ testX, panel=jitter.xyplot)
(xyBw <- bwplot(testY ~ testX))
(xyBwJitter <- update(xyBw, panel=jitter.xyplot))
testXnum <- rep(1:8, 5)
xyplot(testY ~ testXnum, panel=jitter.xyplot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.