Open CAYdenberg opened 2 years ago
Not sure yet how to implement the off-axis displacement, but terms for search engines include "beeswarm plot" and "jitter". One possible implementation is: https://observablehq.com/@d3/beeswarm
Jitter algorithm:
ChartStyle
properties: jitterRadius
and jitterMaxSpread
.jitterMaxSpread / 2
, stop working on this bin. The next point begins a new bin. (Similarly if a point is more than 1 diameter away on the main axis, begin a new bin).
Examples: panels C, D, and E. The plotting is basically a scatter plot with a categorical X axis, but the dots need to "spread" on the X axis when they become clustered. Unknown: what is the algorithm for determining that spread?