I want to add pairwise correlation onto the pairplot but couldn't find a parameter to add the annotation, only a complicated method below. However, using this user-defined function, the r annotation seems overlapping. Not sure what caused this. How to fix this? Also is there a parameter to normalize input variables in pairplot? Thank you.
Asked
Active
Viewed 59 times
1
-
Since you are using `hue=` the function is called once per hue-level (3x in your case, hence the overlap). Do you want the correlation coefficient for one of the hues, or all the hues combined? – Diziet Asahi Aug 30 '20 at 20:19
-
@DizietAsahi Ah I see. Could u pls show code example for these two options? – flyunicorn Aug 31 '20 at 02:06