My aim was to show the insignificant correlation values using symbols (triangle up and triangle down filled with a color). pch as the option for this and values 24 and 25 will be perfect but when I plot, it colors only the border and not the whole triangle. Below is the code I used:
library(corrplot)
M = cor(mtcars)
testRes = cor.mtest(mtcars, conf.level = 0.95)
corrplot(M, p.mat = testRes$p,sig.level = 0.10, method="color", col="white",pch=24, pch.col="red")#triangle up
corrplot(M, p.mat = testRes$p,sig.level = 0.10, method="color", col="white",pch=25, pch.col="red")#triangle down
Also, corrplot(M, p.mat = testRes$p,sig.level = 0.10, method="color", col="white",pch=17, pch.col="red") can be used to get red triangle up but I can't figure out how to get the red triangle down.
Hi,
My aim was to show the insignificant correlation values using symbols (triangle up and triangle down filled with a color). pch as the option for this and values 24 and 25 will be perfect but when I plot, it colors only the border and not the whole triangle. Below is the code I used:
library(corrplot) M = cor(mtcars) testRes = cor.mtest(mtcars, conf.level = 0.95) corrplot(M, p.mat = testRes$p,sig.level = 0.10, method="color", col="white",pch=24, pch.col="red")#triangle up corrplot(M, p.mat = testRes$p,sig.level = 0.10, method="color", col="white",pch=25, pch.col="red")#triangle down
Also, corrplot(M, p.mat = testRes$p,sig.level = 0.10, method="color", col="white",pch=17, pch.col="red") can be used to get red triangle up but I can't figure out how to get the red triangle down.
Kindly let me now it is possible. Thanks!