regimented_jitter: Regimented Jitter

Description Usage Arguments Details Examples

View source: R/regimented_scatter.R

Description

Adds points to boxplots in a regimented way

Usage

1
regimented_jitter(x, y, diameter = 1, ...)

Arguments

x

A scalar number; the x-value in the plot

y

A numeric vector; the values to be jittered regimentally

diameter

A scalar number; controls the diameter of the circles in the plot

...

Parameters which are sent to the symbols command

Details

Returns invisibly cbind(y, jitter_x, jitter_y) where y is the original data and jitter_x and jitter_y are the jittered centers in the plot.

Examples

1
2
3
4
5
6
set.seed(2346)
y <- rnorm(123)
boxplot(y)
regimented_jitter(1, y, bg = "gray80")
boxplot(y)
regimented_jitter(1, y, diameter = 1.5, bg = "gray80")

thomasgstewart/tgsify documentation built on June 18, 2020, 11:10 a.m.