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 details)
Built Distribution
File details
Details for the file statannot-0.2.2.tar.gz
.
File metadata
- Download URL: statannot-0.2.2.tar.gz
- Upload date:
- Size: 693.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a926a2a3f9006b7f44779e7ffbd8621781cb3fe552e0a99bbcabffe39efe3c77
|
|
MD5 |
5bd7fcc4786984971f821c4455246dfb
|
|
BLAKE2b-256 |
0b847c120768dc62653b8a7a68dbfbefb77534a6d91c299472da0b5b25898c5e
|
File details
Details for the file statannot-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: statannot-0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
91efd5932d16609cdb213b7a3d774bc359a79e783e194baa6bfe429286203929
|
|
MD5 |
0831fc3a7a7dfe502a3c827109fb9fd2
|
|
BLAKE2b-256 |
879d35b1fbc9ef03e63d5166213a52340a3e8b07939a2cef8f299df3a8738198
|