On this page
- When a correlation network beats a matrix heatmap
- How node sizing, edge styling, and force layout work
- Choosing the edge threshold and avoiding network artifacts
- Four network-reading traps before claiming hubs or pathways
- Comparing Autoplot Network, R qgraph, Python NetworkX, and Gephi
- Correlation Networks in Autoplot
- Frequently asked questions
When a correlation network beats a matrix heatmap
A symmetric correlation table contains distinct pairs. At , that is 28 cells; at , 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 filters the view onto structural connections:
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 .
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 :
- Node radius (): combines normalized threshold degree (the number of active edges attached to variable ) and average off-diagonal correlation magnitude :
- Node color: evaluates the signed average correlation 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 points with opacity . On neutral-midpoint palettes (
Balanced), edge hue maps directly from signed ; on sequential palettes (Cool-Warm,Viridis,Magma,Plasma,Inferno), edges use explicit signed coral () and blue () strokes so positive and negative links stay unmistakable. - Force-directed placement: starting from a circle ordered around the canvas perimeter, Autoplot runs
120damped Fruchterman and Reingold (1991) spring–repulsion iterations, separating nodes closer than points and pulling linked pairs toward desired spacing with spring factor plus gentle anchor centering. You can drag any node manually and clickArrange Networkwhenever you want to clear custom offsets.
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 effect | Best diagnostic use | Risk if misused |
|---|---|---|---|
| Low () | Dense web linking weak and strong correlations alike | Spotting truly uncoupled noise columns (degree = 0) | Visually cluttered hairball; minor sampling noise draws spurious edges |
| Moderate () | Separates primary clusters, bridge nodes, and trade-off links | Default structural screening and cluster storytelling | Links just below (e.g., r = 0.49) vanish completely while 0.51 remains visible |
| High () | Retains only near-collinear core pairs | Identifying redundant proxies and tight measurement modules | Splits real physical mechanisms into disconnected fragments |
Never treat as a p-value. With small sample sizes (), an observed still carries wide confidence bounds, whereas with , weak effects () can be statistically significant yet absent from a 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:
- Indirect correlations look like direct edges: if latent stiffness drives
Modulus,Hardness, andYield Stresssimultaneously, 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. - Pairwise deletion varies sample counts across edges: when columns contain missing values (
NaN), each pair drops missing rows independently, so two equally thick edges in one network can rest on very different effective . - 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 , detaching cleanly at positive —verify whether an isolated node is genuinely uncorrelated or simply flat or missing. - 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:
| Tool | Statistical input | Layout and rendering | Best workflow fit |
|---|---|---|---|
Autoplot (Network) | Pairwise Pearson with position-aligned NaN exclusion | Metal-accelerated damped force springs, degree-scaled spheres, node drag, SVG/PDF export | Interactive exploration on Apple silicon alongside Correlogram and X&Y Plot checks |
R (qgraph) | Pearson, polychoric, partial (EBICglasso), or weighted matrices | Fruchterman–Reingold spring layout with standardized psychometric conventions | Publication partial-correlation / GGM networks with statistical edge regularization |
Python (NetworkX / SciPy) | Arbitrary user-computed similarity, Spearman, or partial matrices | spring_layout (Fruchterman–Reingold), spectral, Kamada–Kawai | Reproducible scripted pipelines and graph centrality metrics (betweenness, modularity) |
| Gephi | Pre-computed node/edge CSV or .gexf graph tables | ForceAtlas2, Yifan Hu, community modularity coloring | Large external graphs ( 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.
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 shortDisplay Labels, pickOriginalorClustered(1 - |r|average-linkage) ordering, tuneEdge Thresholdfrom0.00to1.00, toggleShow Edge ValuesandAnimate Links, choose across six color schemes (Balanced,Cool-Warm,Viridis,Magma,Plasma,Inferno), drag individual spheres, or clickArrange Networkto reset node offsets. - Render & export: interactive Metal (
MTKView) rendering stays smooth across node drags,Exportwrites trimmed high-DPI images or vector PDFs using the same scene geometry, and switchingModeflips betweenNetworkandCorrelogramwithout 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 PythonSciPyorstatsmodelsscript locally.
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 , combining its count of active links above Edge Threshold and its average correlation magnitude 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 , 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.