You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usecase: Several data points can have the same coordinates – due to chance, measurement resolution or because the data is actually ordinal. Because the points conceal each other, the plot can be misleading as these values are not visualized and thus don't get the visual weight they actually should get.
Solution: Allow jittering the values. (For boxplots, there is already a jittering option, however, its jitter is only along an additional, non-measured dimension)
Would love this feature, further than that I'd love a quasi-random implementation that approximates violin plots. https://github.com/sherrillmix/vipor seems like a short and sweet implementation with plenty of flexibility.
Quick fix I used where my x data column was being pulled from a dataframe is below. Adds a random number -0.5 to 0.5 to each x value. Main issue is that it then displays a changed x-coordinate, so if your data is very sensitive at that scale then it would potentially ruin the data.
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson
Activity
jackparmer commentedon Mar 26, 2017
Jitter issue in MPL matplotlib/matplotlib#2750
Jitter geom in ggplot2: http://docs.ggplot2.org/current/geom_jitter.html
Jitter flag in MATLAB: http://undocumentedmatlab.com/blog/undocumented-scatter-plot-jitter
Any companies out there interested in sponsoring a rigorous look at this for plotly.js and its interface libraries?
https://plot.ly/products/consulting-and-oem/
Shians commentedon May 10, 2017
Would love this feature, further than that I'd love a quasi-random implementation that approximates violin plots. https://github.com/sherrillmix/vipor seems like a short and sweet implementation with plenty of flexibility.
jackparmer commentedon Jul 7, 2017
@PPPW Looking for a sponsor
jayleww commentedon Nov 20, 2017
Also looking for this feature.
Quick fix I used where my x data column was being pulled from a dataframe is below. Adds a random number -0.5 to 0.5 to each x value. Main issue is that it then displays a changed x-coordinate, so if your data is very sensitive at that scale then it would potentially ruin the data.
import np.random
x.apply(lambda n: n+(np.random.random_sample()-0.5)
etpinard commentedon Feb 15, 2018
Deleting all the +1s.
gvwilson commentedon Jun 5, 2024
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson