Learn R Programming

paleoDiv (version 0.4.0)

jitterp: plot data as a jitter-plot

Description

plot data as a jitter-plot

Usage

jitterp(x, y, width, col = "black", alpha = 0.5, ...)

Value

adds the points to the open plotting device as a jitter plot and returns an invisible list()-object containing the positions of all points

Arguments

x

x values to plot (if single value and y is a vector, plot is vertical)

y

y value at which to plot (if single value, plot is horizontal)

width

standard deviation for jitter

col

color for points

alpha

opacity for points

...

other parameters to be passed on to points()

Examples

Run this code
c(1,2,3,2,3,2,3,4,4)->tmp
hist(tmp)
jitterp(x=tmp, y=1, width=0.1)

Run the code above in your browser using DataLab