I have done the following visualization of a correlation matrix:
a <- c(1,2,3,4)
b <- c(5,6,7,8)
data <- data.frame(a, b)
M <- cor(data, method = "spearman")
corrplot(M, method = "color")
Now, the legend of the variables appears in red, which I would like to change to black. Also, I would like to change the names of the variables.
I have looked around for possible solutions but have found nothing yet. As I am rather new to R, I do not know how to solve this myself. Does anybody know how I can do this?

