Skip to content
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

Histogram by percentage (but not by absolute value) #488

Open
ibobak opened this issue Mar 19, 2024 · 1 comment
Open

Histogram by percentage (but not by absolute value) #488

ibobak opened this issue Mar 19, 2024 · 1 comment

Comments

@ibobak
Copy link

ibobak commented Mar 19, 2024

As a data scientist, very often I make many histogram plots by many dimensions.
I often compare distributions with each other by looking at side-by-side histograms, but aligning them by percentage - same as
https://seaborn.pydata.org/generated/seaborn.histplot.html
stat = probability or proportion: normalize such that bar heights sum to 1

But in your case this is problematic:
image

@ObservedObserver
Copy link
Member

@ibobak thanks for your feedback. I think there are two parts in your current questions.

  1. compare the distribution in different facet.
  2. turn the distribution to percentage.

Currently for comparing distribution, you can set the scale of y axis to be indepent with each other. Here is a tutorial video:

scale-sync-example.mp4

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

No branches or pull requests

2 participants