PairPlot is directly called by passing the dataset, as follows. The depth is made up of the hue and size parameters:
sns.pairplot(mlb, hue="Position", size=2.5);
The preceding command gives us a multi-plot in a 3-by-3 grid. This is because we have three observations or columns for each position, as shown in the following screenshot:
The observations present are Height, Weight, and Age.