|
From: Ethan A M. <sf...@us...> - 2015-09-14 17:48:10
|
On the discussion board <https://sourceforge.net/p/gnuplot/discussion/5924> Kevin Rattigan asked if there is a gnuplot equivalent to the types of plot provided by the "beeswarm" module for R. He provided this link to examples: http://www.cbs.dtu.dk/~eklund/beeswarm/ It turns out that these plots arise naturally from a simple jitter offset applied to overlapping points in a scatter plot. Since I already had a jitter patch lying around, I modified it to apply a sequential linear jitter rather than a random jitter, and here you go: >From the ChangeLog Syntax: set jitter {overlap <yposition>} {spread <factor>} {wrap <limit>} {swarm|square} When the x coordinates of a data set are restricted to discrete values then many points may lie exactly on top of each other. Jittering introduces an offset to the coordinates of these superimposed points that spreads them into a cluster. This type of plot is called a "bee swarm" plot in R and other packages. Online copy of the new demo http://gnuplot.sourceforge.net/demo_5.1/jitter.html Please try it out and offer suggestions. Would it make sense to apply the jitter to other plot styles in addition to "with points"? Is there a logical 3D counterpart? Ethan |