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

Booxplot bug #69

Open
holtzy opened this issue Nov 11, 2021 · 0 comments
Open

Booxplot bug #69

holtzy opened this issue Nov 11, 2021 · 0 comments

Comments

@holtzy
Copy link
Owner

holtzy commented Nov 11, 2021

Hi Yan,

You don’t know me but I was just looking at this example:

https://www.d3-graph-gallery.com/graph/boxplot_basic.html

I am pretty sure that the ends of the boxplot whiskers are generally calculated differently in the statistics profession. I recall that the top whisker is at the 90th percentile and the bottom whisker represents the 10th percentile. In the D3 example these values seem a bit arbitrary and not related to the data.

So I’d recommend this code instead
var min = d3.quantile(data_sorted, .1);
var max = d3.quantile(data_sorted, .9);

Just some friendly feedback.

Otherwise the graphs and code examples are really helpful and a great resource.

Thanks.
Ross.

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

1 participant