Skip to main content

Lightweight Bland–Altman plot implementation for method comparison

Project description

Bland-Altman Plot

A lightweight Python library for generating Bland-Altman Plots to evaluate agreement between two measurements methods. This implementation provides a simple interface for quickly visualizing bias and limits of agreements.

Installation

Install from PyPI

pip install bland-altman

Usage

import numpy as np
from bland_altman import bland_altman_plot

# Generate example data
np.random.seed(42) 
x = np.random.normal(100,10,500)
y = x + np.random.normal(0,5,500)

# Generate Bland-Altman plot
bland_altman_plot(x, y, ylim=(-20, 20), figsize=(10,6), label_offset=0.025, color='blue', alpha=0.5, display_grid=True, display_legend=True)

Example Plot

Below is an example Bland-Altman plot generated using this library.


Features

  • Simple and easy-to-use API
  • Automate calculation of mean difference and limits of agreement
  • Customizable plot appearance
  • Buit using Numpy and Matplotlib

Requirements

  • Python 3.8+
  • NumPy
  • Matplotlib

These dependencies will be installed automatically with the package.


License

This project is licensed under MIT License.


Author

Developed for statistical method comparisonand visualization.

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

bland_altman-0.1.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bland_altman-0.1.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file bland_altman-0.1.2.tar.gz.

File metadata

  • Download URL: bland_altman-0.1.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for bland_altman-0.1.2.tar.gz
Algorithm Hash digest
SHA256 74201ed299da58a82b8e16b638d2dde4f203c8a1270a1af13c2fd247ba0430b1
MD5 bd2b3d3fee09dc775dc1f02ed37c6d83
BLAKE2b-256 dd3c2f9b8197ce9a0b6e46aef1586b0abe47ce31deaa7b56182620864e8d0c4c

See more details on using hashes here.

File details

Details for the file bland_altman-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: bland_altman-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for bland_altman-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 03f246d1bd2a2de427ae3c2a976eb5bdeec665d7d0990d4334117d86e824ee4a
MD5 caf6f5d64d26998bd4f74e925fe0f6b1
BLAKE2b-256 b03b540c3e5b14c4e33c9c39f164bfc13833e2eb0a8e4f1d2f4df303dd522970

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page