Scatter Matrix Plot#

A scatter matrix (pair plot) showing pairwise relationships between multiple numeric variables. This example uses the penguins dataset to explore correlations and group separation by species.

import hvplot.pandas  # noqa

df = hvplot.sampledata.penguins('pandas')

cols = ['bill_length_mm', 'bill_depth_mm', 'flipper_length_mm', 'body_mass_g', 'species']
df = df[cols]

hvplot.plotting.scatter_matrix(
    df,
    c='species',
    alpha=0.6,
    cmap='Category10',
)
This web page was generated from a Jupyter notebook and not all interactivity will work on this website.