distro.dots: Distribution plot of points

View source: R/distro.dots.R

distro.dotsR Documentation

Distribution plot of points

Description

Plot the raw distribution of points, like a series of horizontal box plots.

Usage

distro.dots(x, jit.f=1, add=FALSE, pd=0,  vv=names(x), vvlabs=NULL,
                  xlim=range(unlist(x)), ...)

Arguments

x

a list of vectors of values to be plotted

jit.f

factor for random jittering (see 'jitter()'

add

should we add to the existing plot?

pd

'position dodge' moves all y axis plotting positions up or down by this provided value (useful for adding multiple distributions for the same variable)

vv

the variable vector for ordering the y-axis labels

vvlabs

the variable vector labels for labeling the plot (defaults to vv)

xlim

x axis plot limits

...

other parameters passed on to plot

Value

a 'distro dot plot' of variable distributions

Examples


n <- rnorm(130, 10, 3)
p <- rpois(110, 4)
u <- runif(300, 0, 20)
l <- rlnorm(130, log(2))
g <- rgamma(140, 3)

X <- list(a=u, random=n, array=p,of=l, variable=u, spreads=g)
distro.dots(x=X, jit.f=3)


caroline documentation built on Oct. 21, 2024, 9:06 a.m.