0.2.5 • Published 7 years ago

scatter-matrix v0.2.5

Weekly downloads
54
License
MIT
Repository
github
Last release
7 years ago

build status npm version


scatter-matrix.js

scatter-matrix.js (SM) is a JavaScript library for drawing scatterplot matrix. SM handles matrix data in CSV format: rows represent samples and columns represent observations. SM interprets the first row as a header. All numeric columns appear as rows and columns of the scatterplot matrix.

SM is a simple extension/generalization of Mike Bostock's scatterplot matrix example. Additional features include

  • User can color dots by values of a non-numeric observation.
  • User can filter data by values of a non-numeric observation.
  • User can decide what numeric observations to include in the matrix.
  • User can expand the matrix and view data by fixing one or more observations at set values.

For demo, see https://ginkgobioworks.github.io/scatter-matrix/demo/demo.html

Installation

To install:

npm install --save scatter-matrix

If you're not using npm as a package manager, this library is available in a UMD build at unpkg that you can use in a <script> tag in the browser, or install with bower. The UMD build makes ScatterMatrix available as a window.ScatterMatrix global variable.