Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding symbols to insignificant correlation #262

Open
ilakya-selvarajan opened this issue Jan 19, 2023 · 0 comments
Open

adding symbols to insignificant correlation #262

ilakya-selvarajan opened this issue Jan 19, 2023 · 0 comments

Comments

@ilakya-selvarajan
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant