https://github.com/sgratzl/boxplots
A simple boxplot Javascript library with various quantiles options (like R)
https://github.com/sgratzl/boxplots
boxplot boxplots javascript stats typescript
Last synced: 3 months ago
JSON representation
A simple boxplot Javascript library with various quantiles options (like R)
- Host: GitHub
- URL: https://github.com/sgratzl/boxplots
- Owner: sgratzl
- License: mit
- Created: 2020-07-14T21:51:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-12-17T07:31:39.000Z (about 1 year ago)
- Last Synced: 2024-12-28T11:41:58.182Z (12 months ago)
- Topics: boxplot, boxplots, javascript, stats, typescript
- Language: TypeScript
- Homepage:
- Size: 6.14 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# BoxPlots
[![License: MIT][mit-image]][mit-url] [![NPM Package][npm-image]][npm-url] [![Github Actions][github-actions-image]][github-actions-url]
A small library for computing boxplot objects with various quantiles options
## Install
```sh
npm install --save @sgratzl/boxplots
```
## Usage
```ts
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](https://github.com/sgratzl/boxplots/tree/master/samples) on Github
or at this [![Open in CodePen][codepen]](https://codepen.io/sgratzl/pen/VweGdvO)
## Development Environment
```sh
npm i -g yarn
yarn set version latest
cat .yarnrc_patch.yml >> .yarnrc.yml
yarn
yarn pnpify --sdk vscode
```
### Common commands
```sh
yarn clean
yarn compile
yarn test
yarn lint
yarn fix
yarn build
yarn docs
yarn release
yarn release:pre
```
[mit-image]: https://img.shields.io/badge/License-MIT-yellow.svg
[mit-url]: https://opensource.org/licenses/MIT
[npm-image]: https://badge.fury.io/js/%40sgratzl%2Fboxplots.svg
[npm-url]: https://npmjs.org/package/@sgratzl/boxplots
[github-actions-image]: https://github.com/sgratzl/boxplots/workflows/ci/badge.svg
[github-actions-url]: https://github.com/sgratzl/boxplots/actions
[codepen]: https://img.shields.io/badge/CodePen-open-blue?logo=codepen
[codesandbox]: https://img.shields.io/badge/CodeSandbox-open-blue?logo=codesandbox