I have pairs of several data sets and I want to add the correlation coefficient to each one so that the correlations can be visually seen. Ex:
corr1 <- cor(richstruc[,c(4,10,11)])
pairs(richstruc[,c(4,10,11)], main = "comparison 1")
Is there any way I can add the annotations "p = (the corresponding value from corr1)" to each corresponding subplot in the pair?