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

wrong colors if all correlations > 0 #152

Closed
joqb opened this issue May 13, 2020 · 1 comment
Closed

wrong colors if all correlations > 0 #152

joqb opened this issue May 13, 2020 · 1 comment

Comments

@joqb
Copy link

joqb commented May 13, 2020

Hello Viliam and Taiyun,

Very nice package but I have noticed an issue: if I have both negative and positive correlations, everything is fine
corrplot_colors_fitting

But if the correlations are all positive, it seems that the color scale is adjusting to the min and max correlations and not to the range displayed in the legend:
corrplot_wrong_colors

The code I am running is
X=na.omit(DH_pheno_pop1[,3:6])

corrplot(cor(X), method="color", col=col(200), type="upper", order="hclust", addCoef.col = "black", tl.col="black", tl.srt=45, p.mat = cor.mtest(X), sig.level = 0.01, insig = "blank", diag=FALSE )

I am using corrplot 0.85 in RStudio 1.2.5001 and R 4.0.0.

Cheers

@taiyun
Copy link
Owner

taiyun commented May 10, 2021

Thanks. I have removed full_col, it works now.

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

2 participants