Skip to main content
100%

Baseball Scatterplot Matrix II

✓ Published0🌍 Public
深深度碎片
Last edited Aug 9, 2016
Created on Aug 9, 2016

This example shows a scatterplot matrix of 1986 baseball statistics, plotting pairs of traits like hits, home runs, and RBIs to reveal correlations. A slider controls the fill opacity of the SVG circles, allowing users to adjust point visibility. Built with D3 v4, it uses `d3.scaleLinear` for axes, `d3.axisBottom` and `d3.axisLeft` for ticks, and `d3.scaleCategory20` for color encoding by position. Data comes from the R package Visualizing Categorical Data.

AI-generated description

an ES2015 fork of @syntagmatic's nice Baseball Scatterplot Matrix

this iteration also adds an slider to adjust the fill-opacity or the SVG circles used as scatterplot marks. The bl.ocks:

helped me debug the HTML5 <input type='range'> element I use for the slider control.


Scatterplot matrix design invented by J. A. Hartigan and described in his 1975 paper Printer graphics for clustering. 1986 baseball statistics data from the R package Visualizing Categorical Data.

Based on Scatterplot Matrix Brushing, but still awaiting the d3.v4 brush component.

forked from <a href='http://bl.ocks.org/micahstubbs/'>micahstubbs</a>'s block: <a href='http://bl.ocks.org/micahstubbs/89e0d8802a2a43d438540e7b05444e62'>Baseball Scatterplot Matrix II</a>

gpl-3.0 Licensed

Similar vizzes