Skip to content

Variable: scatterMatrix ​

ts
const scatterMatrix: ExpressFunction<ScatterMatrixOptions>;

A scatter plot matrix (px.scatter_matrix): one splom trace per color / symbol group over the dimensions (default: every numeric column not used for color, symbol, size or hover name), without the diagonal; box and lasso selections highlight across cells (dragmode: 'select').

Example ​

ts
const figure = scatterMatrix(iris, {
  dimensions: ['sepalLength', 'sepalWidth', 'petalLength'],
  color: 'species',
});

Released under the MIT License.