add color to statannot
Project description
Disclaimer
This repository is based on webermarcolivier/statannot (commit 1835078 of Feb 21, 2020, tagged "v0.2.3"). Another version available can be found in https://github.com/trevismd/statannotations
Additions/modifications since that version are below represented in bold (previous fixes are not listed).
What is it
Python package to optionnally compute statistical test and add statistical annotations on an existing boxplot/barplot generated by seaborn. We constantly add new features including customized colors, locations, etc.
Features
- Single function to add statistical annotations on an existing boxplot/barplot generated by seaborn boxplot.
- Integrated statistical tests (binding to
scipy.statsmethods):- 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 p-value, or explicit p-value.
- Optionally, custom p-values can be given as input. In this case, no statistical test is performed.
Installation
The latest stable release can be installed from PyPI:
pip install statannotcolor
You may instead want to use the development version from Github:
pip install ttps://github.com/XianchengLI/statannotcolor.git
Documentation
See example jupyter notebook example/example.ipynb.
Usage
Here is a minimal example:
More examples are available in the jupyter notebook example/example.ipynb.
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
Cite
A Digital Object Identifiers (DOIs) was created for the repository for easier referencing in the academic literature.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file statannotcolor-0.1.6.tar.gz.
File metadata
- Download URL: statannotcolor-0.1.6.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f61c5f70827195d953130d74641bf46916c7c12b86c69514e461b6ef9f015975
|
|
| MD5 |
0c4d403208a2a3fbe9f0a85f5e3ceff7
|
|
| BLAKE2b-256 |
9dffc26a5876d9edf6f91e2bfb356865a17be0f2633383d29f9dc022a9c389d7
|