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

ENH: Improved (JMP-like) Box Plot Hierarchy Labels #5825

Closed
tty2-tony opened this issue Jan 2, 2014 · 4 comments
Closed

ENH: Improved (JMP-like) Box Plot Hierarchy Labels #5825

tty2-tony opened this issue Jan 2, 2014 · 4 comments

Comments

@tty2-tony
Copy link

For a lot of work in statistics, box plots are still one of the most useful tools for at-a-glance comparison of experimental groups. JMP has a great default handler for plotting box plots when including multiple grouping levels for the data, including sane handling for missing data. Please see this example for what a simple case looks like:

hierarchy_boxplot_jmp-style

In terms of 'sane defaults' and making a lot of use without a lot of work, I think this would be a great model for future box plot work for pandas given its rich GroupBy functionality. When creating a box plot based on a multi-level grouping in pandas/matplotlib, the only obvious method I can see is to use labels which are tuples of each of the values for the various group levels. This makes it hard to get much out of the plot visually for grouped data set.

JMP has a variety of other features for box plots that would be very useful in the future, but I believe this first visual enhancement would be more powerful for the most users.

@jreback
Copy link
Contributor

jreback commented Jan 3, 2014

this might be nice to add to: https://github.com/mwaskom/seaborn as well

@tty2-tony
Copy link
Author

I'll copy it over there and potentially leave it here for discussion, or however you all see fit.

Thanks!

@dragoljub
Copy link

I like this idea! JMP has one of the best plotting systems and handles all kinds of data very well.

@ghost
Copy link

ghost commented Jan 23, 2014

mwaskom/seaborn#64 already had this in the works. good stuff.

I for one am glad to have pandas' plotting superceded and upstaged by our new python viz overlords.

@ghost ghost closed this as completed Jan 23, 2014
This issue was closed.
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