ppraykov / statannot

add statistical annotations (pvalue significance) on an existing boxplot generated by seaborn boxplot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is it

Python package to add statistical annotations on an existing boxplot generated by seaborn.

Features

  • Single function to add statistical annotations on an existing boxplot generated by seaborn boxplot.
  • Integrated statistical tests: Mann-Whitney, t-test (independent and paired) and Welch's t-test.
  • Proper 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 pvalue.

Example 1

Example 2

Requirements

  • Python >= 3.5
  • numpy >= 1.12.1
  • seaborn >= 0.8.1
  • matplotlib >= 2.2.2
  • pandas >= 0.23.0
  • scipy >= 1.1.0

About

add statistical annotations (pvalue significance) on an existing boxplot generated by seaborn boxplot

License:MIT License


Languages

Language:Jupyter Notebook 88.2%Language:Python 11.8%