Function Repository Resource:

# PairwiseScatterPlot

Construct a scatter plot matrix

Contributed by: Wolfram Research
 ResourceFunction["PairwiseScatterPlot"][m] creates a matrix of scatter plots comparing the data in each column of m against other columns of m.

## Details and Options

ResourceFunction["PairwiseScatterPlot"] returns a matrix of plots of the ith and jth columns of m.
ResourceFunction["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 ith row and jth column takes y coordinates from column i of m and x coordinates from column j of m.

## Examples

### Basic Examples

Plot pairs of columns from trivariate data:

 In[1]:=
 Out[1]=

### Options

#### DataLabels

Use matrix column numbers as labels:

 In[2]:=
 Out[2]=

Give explicit labels:

 In[3]:=
 Out[3]=

#### DataRanges

Limit the range of data values:

 In[4]:=
 Out[4]=

#### DataSpacing

Include nonzero spacing between plots:

 In[5]:=
 Out[5]=

#### DataTicks

Use automatically generated ticks:

 In[6]:=
 Out[6]=

Define explicit tick positions:

 In[7]:=
 Out[7]=

#### PlotDirection

Plot with x indices increasing toward the right and y indices increasing upward:

 In[8]:=
 Out[8]=

### Applications

Visualize the covariance matrix for some multivariate data:

 In[9]:=
 In[10]:=
 Out[10]=

### Neat Examples

Overlap pairwise plots:

 In[11]:=
 Out[11]=

## Requirements

Wolfram Language 11.3 (March 2018) or above