If you want to use red, you can define your own colorRampPalette as you've alread mentioned. Just note that the plot seems to set the range of colors from -1 to 1 (even if you adjust the cl.lim
value). Thus you still need to define colors for the -1 to 0 range in your ramp. For example
corrplot(abs(cor(mtcars)), method="color", tl.pos="n",
cl.lim=c(0,1), col=colorRampPalette(c("blue","white","red"))(200))
will produce
and even though we defined "blue" in the color palette, it doesn't show up because we limited the color bar to values greater than 1.
This "unused" part of the color gradient cab be seen with the original version as well if you take out cl.lim
corrplot(abs(cor(mtcars)), method="color", tl.pos="n")
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…