catjitter: Add a small amount of (rbokeh-compatible) noise to a...

View source: R/misc.R

catjitterR Documentation

Add a small amount of (rbokeh-compatible) noise to a character vector

Description

Add a small amount of (rbokeh-compatible) noise to a character vector

Usage

catjitter(x, factor = 0.5)

Arguments

x

numeric vector to which jitter should be added

factor

a factor between 0 and 1 that

Examples

figure(data = lattice::singer) %>%
  ly_points(catjitter(voice.part), jitter(height), color = "black") %>%
  ly_boxplot(voice.part, height, with_outliers = FALSE)

bokeh/rbokeh documentation built on Nov. 3, 2023, 2:36 a.m.