depictr.explore_pairs#

depictr.explore_pairs(data, cols=None, title=None)#

Scatter-plot matrix over a few numeric columns.

Builds the familiar pairs grid: a scatter of every variable against every other off the diagonal, and that variable’s own density on the diagonal. Each cell is a small themed plot, composed into an N x N grid. The number of columns is capped at five, beyond which the cells are too small to read.

Parameters:
  • data (pandas.DataFrame) – The data.

  • cols (list of str, optional) – Numeric columns to include, in order. Defaults to the first few numeric columns of data. More than five are trimmed to the first five.

  • title (str, optional) – An overall title for the matrix.

Returns:

The composed grid from depictr.compose.arrange_plots().

Return type:

plotnine.ggplot or plotnine.composition.Compose