jitterp function

plot data as a jitter-plot

plot data as a jitter-plot

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

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()

Returns

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

Examples

c(1,2,3,2,3,2,3,4,4)->tmp hist(tmp) jitterp(x=tmp, y=1, width=0.1)
  • Maintainer: Darius Nau
  • License: GPL (>= 3)
  • Last published: 2025-03-23

Useful links