From data to plot

Correlation network graphs

When a correlation matrix grows past five or six variables, scanning dozens of symmetric heatmap cells hides which measurements form tightly coupled clusters, which act as cross-cluster bridges, and which fluctuate independently. A thresholded correlation network turns each variable into a node and draws only edges exceeding an explicit strength cutoff |rij|≥τ, making multi-variable topology visible at a glance.

Updated · 7 min read

On this page
  1. When a correlation network beats a matrix heatmap
  2. How node sizing, edge styling, and force layout work
  3. Choosing the edge threshold and avoiding network artifacts
  4. Four network-reading traps before claiming hubs or pathways
  5. Comparing Autoplot Network, R qgraph, Python NetworkX, and Gephi
  6. Correlation Networks in Autoplot
  7. Frequently asked questions

When a correlation network beats a matrix heatmap

A symmetric p×p correlation table contains p(p−1)/2 distinct pairs. At p=8, that is 28 cells; at p=25, 300 cells compete equally for visual attention even when only a handful of pathways drive the dataset. Switching from a dense grid to a thresholded graph G=(V,Eτ) filters the view onto structural connections:

Eτ={(i,j):1≤i<j≤p,|rij|≥τ}

Use a correlation matrix heatmap when you need to inspect every pairwise value—including near-zero cells—in a fixed clustered order. Switch to Network mode when your question is topological: which variables sit as high-degree hubs, which sub-groups oppose one another with negative edges, which variable bridges two clusters, and which variables detach completely once |rij|<τ.

How node sizing, edge styling, and force layout work

A correlation network becomes readable only when visual encodings stay mathematically tied to the underlying matrix rather than arbitrary decoration. In Autoplot (CorrelationNetworkGraphBuilder and CorrelationNetworkLayout), the graph derives four geometric properties from the pairwise Pearson matrix R:

  • Node radius (Ri): combines normalized threshold degree di/dmax (the number of active edges |rij|≥τ attached to variable i) and average off-diagonal correlation magnitude μ|r|,i=1p−1∑j≠i|rij|:
Ri=22+34max(dimax(dmax,1),μ|r|,i)
  • Node color: evaluates the signed average correlation μr,i=1p−1∑j≠irij against the selected palette, tinting predominantly positively coupled hubs coral-red and predominantly anti-correlated hubs blue on Balanced.
  • Edge stroke and sign color: draws width wij=1.4+7.2|rij| points with opacity 0.70+0.15|rij|. On neutral-midpoint palettes (Balanced), edge hue maps directly from signed rij; on sequential palettes (Cool-Warm, Viridis, Magma, Plasma, Inferno), edges use explicit signed coral (rij≥0) and blue (rij<0) strokes so positive and negative links stay unmistakable.
  • Force-directed placement: starting from a circle ordered around the canvas perimeter, Autoplot runs 120 damped Fruchterman and Reingold (1991) spring–repulsion iterations, separating nodes closer than Ri+Rj+42 points and pulling linked pairs toward desired spacing max(Ri+Rj+62,190−60|rij|) with spring factor 0.018|rij| plus gentle anchor centering. You can drag any node manually and click Arrange Network whenever you want to clear custom offsets.
Autoplot Correlations Network view of eight materials variables showing Mode set to Network, summary pills (Variables 8, Strong Pairs 13, Ordering Clustered, Threshold 0.50), Metal-shaded spherical nodes where hubs Porosity, Conductivity, Yield Stress, Hardness, and Modulus appear larger than Moisture, Glass Tg, and disconnected Batch Drift, coral positive edges (0.84, 0.65, 0.64), blue negative edges (-0.68, -0.67, -0.65, -0.54), and a vertical Balanced Correlation colorbar from -1 to +1
An 8-variable materials network at Edge Threshold 0.50 (13 active links): stiffness properties form a coral-positive cluster opposed by blue negative links to Porosity and Moisture, Glass Tg bridges through Conductivity, and Batch Drift isolates outside the connected core.

Choosing the edge threshold and avoiding network artifacts

As Epskamp et al. (2012) note for qgraph network visualizations and Zhang and Horvath (2005) analyze for gene co-expression networks, hard-thresholded graphs are sensitive to where τ sits relative to marginal links. Sweep Edge Threshold across a few steps before locking in a diagram:

Edge Threshold τTopological effectBest diagnostic useRisk if misused
Low (τ≈0.20–0.35)Dense web linking weak and strong correlations alikeSpotting truly uncoupled noise columns (degree = 0)Visually cluttered hairball; minor 1/n sampling noise draws spurious edges
Moderate (τ≈0.50–0.65)Separates primary clusters, bridge nodes, and trade-off linksDefault structural screening and cluster storytellingLinks just below τ (e.g., r = 0.49) vanish completely while 0.51 remains visible
High (τ≥0.75)Retains only near-collinear core pairsIdentifying redundant proxies and tight measurement modulesSplits real physical mechanisms into disconnected fragments

Never treat τ as a p-value. With small sample sizes (n<20), an observed |r|=0.55 still carries wide confidence bounds, whereas with n=2,000, weak effects (|r|=0.15) can be statistically significant yet absent from a τ=0.50 network. Keep signed numeric labels (Show Edge Values) visible during analysis and plot key pairs in CSV X&Y plots before interpreting any edge.

Four network-reading traps before claiming hubs or pathways

Before naming a large node the "driver" of a system, check four structural caveats:

  1. Indirect correlations look like direct edges: if latent stiffness drives Modulus, Hardness, and Yield Stress simultaneously, all three links appear in a Pearson network. Unlike Gaussian graphical models built from partial correlations (precision matrix inverse), zero-order Pearson edges do not isolate direct conditional links.
  2. Pairwise deletion varies sample counts across edges: when columns contain missing values (NaN), each pair (i,j) drops missing rows independently, so two equally thick edges in one network can rest on very different effective n.
  3. Infinities and constant columns distort connectivity: clean ±∞ before building a network because uncleaned infinities corrupt sums of squares. Any constant column or pair with fewer than two valid overlapping rows defaults to r=0, detaching cleanly at positive τ—verify whether an isolated node is genuinely uncorrelated or simply flat or missing.
  4. Canvas placement is non-unique: dragging nodes improves label clearance without altering any coefficient, and force-directed layouts depend on spring weights and boundary clamping—never read exact pixel angles or gap lengths as statistical distances.

Comparing Autoplot Network, R qgraph, Python NetworkX, and Gephi

Choose the network workflow that fits whether you need interactive multi-variable screening on macOS or programmatic partial-correlation inference:

ToolStatistical inputLayout and renderingBest workflow fit
Autoplot (Network)Pairwise Pearson r with position-aligned NaN exclusionMetal-accelerated damped force springs, degree-scaled spheres, node drag, SVG/PDF exportInteractive exploration on Apple silicon alongside Correlogram and X&Y Plot checks
R (qgraph)Pearson, polychoric, partial (EBICglasso), or weighted matricesFruchterman–Reingold spring layout with standardized psychometric conventionsPublication partial-correlation / GGM networks with statistical edge regularization
Python (NetworkX / SciPy)Arbitrary user-computed similarity, Spearman, or partial matricesspring_layout (Fruchterman–Reingold), spectral, Kamada–KawaiReproducible scripted pipelines and graph centrality metrics (betweenness, modularity)
GephiPre-computed node/edge CSV or .gexf graph tablesForceAtlas2, Yifan Hu, community modularity coloringLarge external graphs (>100 nodes) already exported as edge lists

Keep R qgraph or Python (SciPy + NetworkX) when you need LASSO-regularized partial correlations (EBICglasso), bootstrap edge stability intervals, or formal community detection metrics, and keep Gephi for large-scale pre-built network topologies. Use Autoplot when you want an instant zero-code switch between clustered heatmaps and Metal-rendered correlation networks directly on your tabular variables.

In Autoplot

Correlation Networks in Autoplot

Autoplot's Correlation View (Analyze & Plot → New Figure → Correlations → Add Plot → Correlation View, Plus — free for 30 days) switches live between triangular correlograms and interactive force-directed networks locally on your Mac:

  • Controls (Variables, Method, Display): select two or more numeric variables (All / Clear), assign short Display Labels, pick Original or Clustered (1 - |r| average-linkage) ordering, tune Edge Threshold from 0.00 to 1.00, toggle Show Edge Values and Animate Links, choose across six color schemes (Balanced, Cool-Warm, Viridis, Magma, Plasma, Inferno), drag individual spheres, or click Arrange Network to reset node offsets.
  • Render & export: interactive Metal (MTKView) rendering stays smooth across node drags, Export writes trimmed high-DPI images or vector PDFs using the same scene geometry, and switching Mode flips between Network and Correlogram without losing threshold or label settings.
  • Where it stops: Correlation Views compute zero-order pairwise Pearson correlation only and do not persist edge lists or matrices as workspace variables or filter ±∞ inputs automatically. For Spearman rank matrices, partial correlations, p-values, or multiple-testing adjustments, ask Autoplot's AI Assistant to generate and run a Python SciPy or statsmodels script locally.

See features and pricing.

Frequently asked questions

Frequently asked questions
What does Edge Threshold do in Correlation Network mode?Edge Threshold (τ, from 0.00 to 1.00) hides every edge whose absolute Pearson correlation is smaller than τ. Lowering it reveals weak links and isolates truly uncorrelated variables; raising it clears clutter so only the strongest positive and negative pairs remain connected.
Why are some nodes larger than others in Autoplot's correlation network?Each node's radius scales with max(di/dmax,μ|r|,i), combining its count of active links above Edge Threshold and its average correlation magnitude μ|r|,i across the rest of the selected variables. Well-connected hubs appear larger than peripheral bridges or isolated noise variables.
What does switching Ordering from Original to Clustered change in Network mode?Clustered reorders selected variables using average-linkage agglomeration on 1−|rij|, which updates initial angular node anchors and aligns variable sequences across the Correlation Summary and companion Correlogram view. The pairwise Pearson values themselves and Edge Threshold filtering do not change.
Does Autoplot Network compute partial correlations?No. The built-in Correlation View computes zero-order pairwise Pearson correlation coefficients with pairwise NaN omission. For partial correlation networks or Spearman rank correlation networks, export cleaned data or ask the AI Assistant to run a local Python SciPy or pingouin script.

Sources

Algorithm details (CorrelationNetworkGraphBuilder, radius scaling 22 + 34 * sqrt(max(degreeScale, magnitudeScale)), edge width 1.4 + 7.2 * |r|, 120-iteration CorrelationNetworkLayout, hasNeutralMidpoint signed edge color fallback, displayLabelsByVariableID, and networkNodeOffsets) and UI labels (Correlations, Correlation View, Network, Correlogram, Edge Threshold, Show Edge Values, Animate Links, Arrange Network, Balanced) were verified directly against Autoplot source (CorrelationNetworkGraph.swift, CorrelationMatrixView.swift, CorrelationVisualStyle.swift, DataModel.swift, and docs/user-wiki/08-correlations-mode.md / algorithms/correlation.md) on 28 November 2026. Reference correlation and spring-layout implementations draw on SciPy's scipy.stats.pearsonr and NetworkX's spring_layout. Force-directed spring placement draws on T. M. J. Fruchterman and E. M. Reingold, "Graph drawing by force-directed placement," Software: Practice and Experience 21(11), 1129–1164 (1991), DOI 10.1002/spe.4380211102; psychometric signed correlation network visualization draws on S. Epskamp, A. O. J. Cramer, L. J. Waldorp, V. D. Schmittmann, and D. Borsboom, "qgraph: Network Visualizations of Relationships in Psychometric Data," Journal of Statistical Software 48(4), 1–18 (2012), DOI 10.18637/jss.v048.i04; and hard-thresholding pitfalls in correlation networks draw on B. Zhang and S. Horvath, "A General Framework for Weighted Gene Co-Expression Network Analysis," Statistical Applications in Genetics and Molecular Biology 4(1), Article 17 (2005), DOI 10.2202/1544-6115.1128.

Try it on your own data.

Autoplot renders thresholded Pearson correlation networks locally on Apple silicon with degree-scaled nodes, force-directed springs, interactive node dragging, and diverging colorbars. Part of Plus (free for 30 days).

Read how to read a correlation matrix heatmap →
Download .dmg

Without Private Cloud Compute · macOS 15–26

Apple silicon · macOS 15 or later · Free plan · Plus free for 30 days · 11 starter AI credits

Send to my Mac

Autoplot runs on a Mac. Send the link to yourself, or open it in the Mac App Store.