jitter.xyplot: Make boxplots or dotplots with sample-size proportional...

View source: R/jitter.xyplot.R

jitter.xyplotR Documentation

Make boxplots or dotplots with sample-size proportional jitters

Description

Make boxplots or dotplots with jitters of the size proportional to the sample size. See examples.

Usage

jitter.xyplot(x, y, N = 20, factor = 1, ...)

Arguments

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 panel.xyplot

Value

Side effects are used.

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

Examples


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)


bedapub/ribiosPlot documentation built on Sept. 1, 2023, 6:50 p.m.