question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhance hv.Distribution to natively support ridgeline plots

See original GitHub issue

Proposal

Creating joyplots with Holoviews should not be too complicated using hv.Distribution with hv.Layout or hv.Overlay (or hv.NdOverlay). However, it would be great to abstract away the implementation within hv.Distribution.

joy_index In the same way as hv.Bars has two variants via group_index and stack_index to distinguish groups of data, hv.Distribution could support an optional joy_index to distinguish different distributions. Using the joy_index option would automatically result in joy plots. color_index and cmap could be added for coloring different groups as in the referenced example above.

I think a group_index (or better overlay_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 with univariate_kde and Area. I have to get my head around the design here but it should be ok.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
jbednarcommented, Apr 16, 2019

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…

3reactions
philippjfrcommented, Feb 25, 2018

I would love to see joy plots too. Your suggestion of a joy_index seems reasonable although I would also consider a Ridgeline or Joy element where the key dimension is the joy_index and the value dimension the values to compute the kdes over. In general I think we want to move away from index options in favor of making the dimension explicit or express it using op transforms (https://github.com/ioam/holoviews/pull/2152).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to ggridges
The geom geom_density_ridges calculates density estimates from the provided data and then plots those, using the ridgeline visualization. The ...
Read more >
Elegant Visualization of Density Distribution in R Using ...
This article how to visualize distribution in R using density ridgeline. The density ridgeline plot [ggridges package] is an alternative to ...
Read more >
State of EDR in the US CDR Update June 2022
90+% of 2022's are supported by Bosch. 3. Another 9% have EDR accessible by other tools. 99+% have EDR. 4. With advanced analysis...
Read more >
FROST BRIDGE TO CAMPVILLE 115-kV PROJECT - CT.gov
environmental resources, land uses, and cultural resources were key ... increase instantaneously on the transmission lines that remain in-service.
Read more >
THE CAMP FIRE PUBLIC REPORT - Butte County
In that area of the Feather. River Canyon cell phone service is not available. The employee used his PG&E radio to contact. PG&E...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found