Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Secondary categorical variable for box / violin plots #6923

Open
stuart-cls opened this issue Oct 31, 2024 · 2 comments
Open

Secondary categorical variable for box / violin plots #6923

stuart-cls opened this issue Oct 31, 2024 · 2 comments

Comments

@stuart-cls
Copy link

What's your use case?
We would like a way to visualize distributions across categories between subsets.

What's your proposed solution?
Essentially add a third dimension to produce graphs like:

image

https://seaborn.pydata.org/tutorial/categorical.html#violinplots

where the new variable would be equivalent to the hue=sex parameter.

Are there any alternative solutions?
Custom script into a seaborn visualization :)

I may be able to implement this, but I wanted to ask if it would be accepted first.

@markotoplak markotoplak added the needs discussion Core developers need to discuss the issue label Nov 8, 2024
@janezd janezd self-assigned this Nov 15, 2024
@janezd janezd removed the needs discussion Core developers need to discuss the issue label Nov 15, 2024
@janezd
Copy link
Contributor

janezd commented Nov 15, 2024

We discussed this at the meeting. If you're willing to implement it, by all means, you're welcome!

@janezd janezd removed their assignment Nov 15, 2024
@processo
Copy link

processo commented Nov 29, 2024

@stuart-cls A bit of a hack solution but you can always use Formula to make a new categorical attribute from any number of separate ones (like D1 := day+"_"+sex) and use that in Violin Plot.
violin plot

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants