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

Feature request: box-and-whisker plots #173

Closed
jaanli opened this issue Sep 8, 2023 · 3 comments
Closed

Feature request: box-and-whisker plots #173

jaanli opened this issue Sep 8, 2023 · 3 comments

Comments

@jaanli
Copy link

jaanli commented Sep 8, 2023

I am not sure whether this is feasible with Mosaic, but it would be very helpful for comparing prices across hospitals. Examples of Mosaic visualizations here:

https://www.payless.health/hospital/lehigh-valley-st-lukes-comparison
https://www.payless.health/hospital/indiana-university
https://www.payless.health/hospital/parkview-health

Box-and-whisker plots would enable easier visual comparison across different procedures, medications, treatments, and insurance products across different regions of the country!

@domoritz
Copy link
Member

We'll need to do #163 first so let's close this.

@domoritz domoritz closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2023
@jheer
Copy link
Member

jheer commented Sep 21, 2023

While we don't have a dedicated box plot mark, you can still create a box plot as a set of layered marks. The "athletes" dashboard example already goes half way there by including marks for the average (which you should change to median for a traditional box plot) and IQR (between the 0.25 and 0.75 quantile boundaries). You could similarly add whiskers, e.g., with marks that extend 1.5 * IQR beyond the IQR box or as min/max or another interval, depending on your needs.

@jheer
Copy link
Member

jheer commented Sep 21, 2023

I don't think #163 is needed (at least not the CI calculation part), as box plots don't typically involve computed confidence intervals.

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

3 participants