-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Enhance hv.Distribution to natively support ridgeline plots #2375
Comments
I would love to see joy plots too. Your suggestion of a joy_index seems reasonable although I would also consider a |
I agree - creating a dedicated I'm going to rename this issue accordingly if you don't mind. |
joy plot would be very useful. +1 |
I'd love to see native joyplot integration. I think there are many instances in which they are superior to violin and boxplots when one wants to visualize and compare a large number of distributions in a single glance. |
It doesn't seem too difficult to add such a plot, given https://bokeh.pydata.org/en/latest/docs/gallery/ridgeplot.html ; PRs welcome! But note that to keep the library neutral, it should be called Ridgeline and not Joy... |
any update here? I got this one but I need to draw many ridgeline subplots with the help such as hv.Layout function ... |
I haven't seen anyone submitting such a PR yet, no; still worth doing! |
Proposal
Creating joyplots with Holoviews should not be too complicated using
hv.Distribution
withhv.Layout
orhv.Overlay
(orhv.NdOverlay
). However, it would be great to abstract away the implementation withinhv.Distribution
.joy_index
In the same way as
hv.Bars
has two variants viagroup_index
andstack_index
to distinguish groups of data,hv.Distribution
could support an optionaljoy_index
to distinguish different distributions. Using thejoy_index
option would automatically result in joy plots.color_index
andcmap
could be added for coloring different groups as in the referenced example above.I think a
group_index
(or betteroverlay_index
) could be also possible to simply overlay different distributions without distinguishing them vertically (as in joyplots) and without explicitly using overlays.What is your opinion on this? I would be willing to give it a shot if you find this enhancement useful and appropriate. I took a quick look at the code and recognized the
Compositor
in combination withunivariate_kde
andArea
. I have to get my head around the design here but it should be ok.The text was updated successfully, but these errors were encountered: