Skip to main content
100%

Abalone Correlation Matrices

✓ Published0🌍 Public
JJames Huang
Last edited Oct 8, 2023
Created on Oct 8, 2023
Forked from Hello VizHub

This example shows three correlation matrices for male, female, and infant abalones, using a diverging red-blue color scale to represent the strength and direction of correlations between eight physical attributes. The matrices display numerical correlation values in each cell, with negative correlations in red and positive in blue. The code loads abalone data from a CSV file, filters it by sex, and calculates correlations using the simple-statistics library’s `sampleCorrelation` function. Each matrix is rendered as an SVG using D3 v7, with `d3.scaleSequential` and `d3.interpolateRdBu` defining the color mapping, and axis labels positioned around the grid.

AI-generated description
MIT Licensed

Similar vizzes