trevismd / statannotations

add statistical significance annotations on seaborn plots. Further development of statannot, with bugfixes, new features, and a different API.
Other
624 stars 67 forks source link

Plot comparison between groups specified in the hue? #53

Closed tmspvn closed 2 years ago

tmspvn commented 2 years ago

As the title, is there a way to do the statistical comparison and plot the annotations between the groups specified via the hue?

tmspvn commented 2 years ago

I totally missed this part in the documentation

pairs: can be of either form:
            For non-grouped plots: `[(cat1, cat2), (cat3, cat4)]`.
            For plots grouped by hue: `[ ((cat1, hue1), (cat2, hue2)), ((cat3, hue3), (cat4, hue4)) ]`