add statistical annotations on an existing boxplot/barplot generated by seaborn.
Project description
What is it
Python package to optionnally compute statistical test and add statistical annotations on an existing boxplot/barplot generated by seaborn.
Features
- Single function to add statistical annotations on an existing boxplot/barplot generated by seaborn boxplot.
- Integrated statistical tests (binding to
scipy.stats
methods):- Mann-Whitney
- t-test (independent and paired)
- Welch's t-test
- Levene test
- Wilcoxon test
- Kruskal-Wallis test
- Smart layout of multiple annotations with correct y offsets.
- Annotations can be located inside or outside the plot.
- Format of the statistical test annotation can be customized: star annotation, simplified pvalue, or explicit p-value.
- Optionally, custom p-values can be given as input. In this case, no statistical test is performed in the function.
Documentation
See example jupyter notebook.
Examples
Requirements
- Python >= 3.5
- numpy >= 1.12.1
- seaborn >= 0.8.1
- matplotlib >= 2.2.2
- pandas >= 0.23.0
- scipy >= 1.1.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
statannot-0.2.2.tar.gz
(693.6 kB
view hashes)
Built Distribution
Close
Hashes for statannot-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91efd5932d16609cdb213b7a3d774bc359a79e783e194baa6bfe429286203929 |
|
MD5 | 0831fc3a7a7dfe502a3c827109fb9fd2 |
|
BLAKE2b-256 | 879d35b1fbc9ef03e63d5166213a52340a3e8b07939a2cef8f299df3a8738198 |