I am trying to run the "ggpairs" function to plot the correlation between different variables ("a" database) and differentiate by groups ("group").
The problem is that I have to apply the spearman method but I can't change the default method.
I appreciate your help to solve this problem
This is the line I execute
ggpairs(a, method = c("everything", "spearman"), mapping = aes(color = group, alpha = 0.5)) + theme_bw()
And this is the warning that comes out when executing the line:
Extra arguments: "method" are being ignored. If these are aesthetics, display them using the 'mapping' variable inside ggpairs with ggplot2::aes or ggplot2::aes_string.