I am using corrplot
in R to visualise a correlation-coefficient matrix as follows.
library(corrplot)
library(datasets)
corrplot(abs(cor(mtcars)), method="color", tl.pos="n", cl.lim = c(0,1))
The default colour scheme is blue-based. However, I would like to change it to red-based. I know I need to use colorRampPalette
to specify colours I want. However, I could not figure out what colour codes to use. Could anyone help me with this, please?
Thank you!
corrplot
does not appear to be a function in base R, clearly indicate which packages you are using, – Pehlevi