-
Notifications
You must be signed in to change notification settings - Fork 394
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
BoxChart goes below 0 although min value is > 0 #410
Comments
@beatngu13 |
Hey @Mr14huashao, Thanks for pointing to the underlying formula. I already had a quick look at it, but is the calculation correct this way? AFAIK boxplots are based on the five-number summary, why should the lower limit be less than the minimum? If I go to e.g. this online calculator and use the example dataset (1000, 5000, 60000), I get:
Then the lower fence (not limit?) should be:
Since there are no outliers, the lower and upper limits should correspond to the minimum and maximum values I would say. Also, if you use other online chart makers, you get different results. For example, plot.ly: Or BoxPlotR: |
@beatngu13 can you spare me a few minutes to see this issue? |
@Mr14huashao sure, how can I help? |
@beatngu13 |
@Mr14huashao Thanks! BTW, the original inspiration for this was MATLAB: https://www.mathworks.com/help/stats/boxplot.html |
@timmolter
Example:
Are all four calculation methods implemented? |
[resolves #410] Box plot feature fixes and code optimizations
Thanks for the quick fix! 🙏 |
MWE:
Creates the following chart:
As can be seen in the code example, the min value is 1,000, but the boxplot goes below 0.
Is this a config issue or a bug?
The text was updated successfully, but these errors were encountered: