You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: