Correlogram

logo of a chart:Correlogram

A correlogram or correlation matrix allows to analyse the relationship between each pair of numeric variables of a matrix. The correlation is visualised as a scatterplot. The diagonal represents the distribution of each variable with a histogram or a density plot.

Seaborn logoCorrelogram with Seaborn

Seaborn is definitely the best way to build a correlogram with python. It provides a pairplot() function that handles most of the work for you. The examples below give an overview of the customizations you can apply to it to suits your need.

Note that a correlogram is an aggregate of scatterplots and histograms. Most of the customizations described in those related sections can be applied here.

Contact


👋 This document is a work by Yan Holtz. You can contribute on github, send me a feedback on twitter or subscribe to the newsletter to know when new examples are published! 🔥