Skip to content

A simple boxplot Javascript library with various quantiles options (like R)

License

Notifications You must be signed in to change notification settings

sgratzl/boxplots

Repository files navigation

BoxPlots

License: MIT NPM Package Github Actions

A small library for computing boxplot objects with various quantiles options

Install

npm install --save @sgratzl/boxplots

Usage

import boxplot from '@sgratzl/boxplots';

const arr = [
  -0.402253, -1.4521869, 0.135228, -1.8620118, -0.5687531, 0.4218371, -1.1165662, 0.5960255, -0.5008038, -0.394178,
  1.3709885,
];
const b = boxplot(arr);

see Samples on Github

or at this Open in CodePen

Development Environment

npm i -g yarn
yarn set version latest
cat .yarnrc_patch.yml >> .yarnrc.yml
yarn
yarn pnpify --sdk vscode

Common commands

yarn clean
yarn compile
yarn test
yarn lint
yarn fix
yarn build
yarn docs
yarn release
yarn release:pre