Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 624 Bytes

stat_y_jitter.md

File metadata and controls

30 lines (23 loc) · 624 Bytes

title: y_jitter author: Daniel C. Jones part: Statistic order: 1004 ...

Nudge values on the y-axis to avoid overplotting.

Asethetics

  • y: Data to nudge.

Arguments

  • range: Maximum jitter is this number times the resolution of the data, where the "resolution" is the smallest non-zero difference between two points.
  • seed: Seed for RNG used to randomly jitter values.

Examples

using Gadfly, Distributions

Gadfly.set_default_plot_size(14cm, 8cm)
srand(1234)
plot(x=rand(500), y=rand(1:4, 500), Stat.y_jitter(range=0.5), Geom.point)