Correlation Matrix
A square correlation matrix ordered by hierarchical clustering so correlated blocks sit together, with topic-colored labels and a diverging-ramp legend. An optional second strip shows how each measure tracks demographic context variables. Use it to survey the structure of many pairwise relationships at once before committing to a single scatter.
Correlation Matrix
Installshow
viz add d3/stats/correlation-matrix-v1Usageshow
import Component from '@/viz/components/d3/stats/correlation-matrix-v1';
Metadata
- FrameworkD3 / SVG
- Categoryindicators-and-matrices
- Subcategoryrelationships
- Source
d3/stats/correlation-matrix-v1
Dependencies
Related Components
County Choropleth
A US county choropleth rendered as inline SVG from a caller-supplied TopoJSON, with theme diverging or sequential ramps, state borders, and a hover tooltip. Use it for print-quality county maps in articles; for zoomable, high-cardinality maps reach for the MapLibre engine instead.
County Choropleth (diverging)
The county choropleth tuned for residual / above-or-below maps: a diverging color scale centered on a reference value (the national mean or zero), so counties read as positive vs. negative at a glance. Same component as County Choropleth — just a centered three-stop domain. Derived from the diverging county maps across the birth_death + Politics data stories (e.g. two-despairs, merchant-right-county-residuals).
Scatter Cloud
A point cloud with an optional y=x parity line, a binned-mean summary line, and quadrant annotations. Use it for rank-rank or before/after relationships where the reader should see both the dispersion and the central tendency.
PCA Biplot
A principal-component biplot: observation scores as a quiet cloud plus variable loadings as labeled, focusable arrows with collision-managed leader labels. Use it to read which variables drive each component and how observations spread along them.