-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature suggestion] Add structured and jittered layout options to categorical scatter plots #3332
Comments
The |
Thanks for the quick response and sorry for missing that. Would a swarmplot preferably be added a a new element in Holoviews or as a transform function in Bokeh (similar to jitter)? |
Good question, I suspect implementing it as an element would be easier, it would simply follow the same structure as BoxWhisker and Violin plots. |
Hi @joelostblom, I was wondering if you have plans to make a pull request to implement swarm plots? I made a prototype using pandas, but I think it might have to be translated into numpy if implemented in HoloViews though?
|
@ahuang11 I do not currently plan to make a PR on this. I recommend looking at the seaborn swarmplot implementation and the pybeeswarm package for inspiration. In my testing, the seaborn implementation was a lot faster and scaled much better to larger data sets. The pybeeswarm package has more layout options. |
@ahuang11 with 1.11 now being released I'm hoping to start generalizing the categorical support ASAP, so it might make sense to wait for that before building another plot class. |
Re categorical axes: support for placing text and annotations would be great: |
Hello Holoviz folks. Any plans for adding beeswarm plots to category plotting as per the awesome plots available in Seaborn? I am happy to contribute myself if someone could point out where to start in the code. :) I much prefer Holoviews to most of the other python plotting libraries and it would be huge to have better support for Violin plots with overlaid point clouds, such as this plot: |
@jlstevens . Would you know how @aeronth could get started? |
Seems like that ought to be an example in the gallery! |
Currently, it is possible to create scatter plots with one categorical axis, but the data points are always laid out in a straight line. I think one of the main strengths of categorical scatter plots is that they promote showing all data points instead of (or in addition to) estimations of distribution statistics such as the mean, median etc. When all plots are laid out in one line, this advantage is severely reduced since there will be significant overlap and many point will be completely obfuscated.
Addition of random jitter (dot/stripplots) or a structured data point layout ((bee)swarmplots) would allow for the creation of more informative categorical scatter plots. Great examples of these can be found in the seaborn gallery: stripplot, swarmplot
Are these layout options possible to add to Holoviews or would they need to be added to the underlying plotting libraries?
The text was updated successfully, but these errors were encountered: