creates a matrix of scatter plots comparing the data in each column of m against columns of m.
PairwiseScatterPlot
creates a matrix of scatter plots comparing the data in each column of m against columns of m.
Details and Options
- To use PairwiseScatterPlot, you first need to load the Statistical Plots Package using Needs["StatisticalPlots`"].
- PairwiseScatterPlot returns a matrix of plots of the i
and j
columns of m. - PairwiseScatterPlot has the same options as Graphics, with the following additions and changes:
-
DataLabels None labels for the columns of m DataRanges All range limits on the data DataSpacing 0 space to place between subplots DataTicks None tick specifications for the columns PlotDirection {Right, Down} direction in which scatter plots are generated PlotRange All range limits on the subplots PlotStyle Automatic styles for the subplots - With the default setting of PlotDirection, the subplot located at the i
row and j
column takes y coordinates from column i of m and x coordinates from column j of m.
Examples
open all close allBasic Examples (1)
Options (7)
DataLabels (2)
Needs["StatisticalPlots`"]Use matrix column numbers as labels:
PairwiseScatterPlot[{{5, 10}, {9, 6}, {10, 8}, {4, 1}, {6, 3}},
DataLabels -> Automatic]Needs["StatisticalPlots`"]PairwiseScatterPlot[{{5, 10}, {9, 6}, {10, 8}, {4, 1}, {6, 3}},
DataLabels -> {"x", "y"}]DataRanges (1)
DataSpacing (1)
DataTicks (2)
Needs["StatisticalPlots`"]Use automatically generated ticks:
PairwiseScatterPlot[{{5, 10}, {9, 6}, {10, 8}, {4, 1}, {6, 3}},
DataTicks -> Automatic]Needs["StatisticalPlots`"]Define explicit tick positions:
PairwiseScatterPlot[{{5, 10}, {9, 6}, {10, 8}, {4, 1}, {6, 3}},
DataTicks -> {{4, 6, 8}, {5, 10}}]Applications (1)
Needs["StatisticalPlots`"]Needs["MultivariateStatistics`"]Visualize the covariance matrix for some multivariate data:
data = RandomReal[
MultinormalDistribution[{0, 0,
0}, {{1, 1/2, -2/3}, {1/2, 3, 2}, {-2/3, 2, 4}}], 100];PairwiseScatterPlot[data]See Also
Tech Notes
Related Guides
Text
Wolfram Research (2007), PairwiseScatterPlot, Wolfram Language function, https://reference.wolfram.com/language/StatisticalPlots/ref/PairwiseScatterPlot.html.
CMS
Wolfram Language. 2007. "PairwiseScatterPlot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/StatisticalPlots/ref/PairwiseScatterPlot.html.
APA
Wolfram Language. (2007). PairwiseScatterPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/StatisticalPlots/ref/PairwiseScatterPlot.html
BibTeX
@misc{reference.wolfram_2026_pairwisescatterplot, author="Wolfram Research", title="{PairwiseScatterPlot}", year="2007", howpublished="\url{https://reference.wolfram.com/language/StatisticalPlots/ref/PairwiseScatterPlot.html}", note=[Accessed: 09-April-2026]}
BibLaTeX
@online{reference.wolfram_2026_pairwisescatterplot, organization={Wolfram Research}, title={PairwiseScatterPlot}, year={2007}, url={https://reference.wolfram.com/language/StatisticalPlots/ref/PairwiseScatterPlot.html}, note=[Accessed: 09-April-2026]}