-
Notifications
You must be signed in to change notification settings - Fork 89
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
Midpoint color is not white #228
Comments
Please read the manual.
The limits (x1, x2) interval for assigning color by col. If NULL, col.lim will be c(-1, 1) when is.corr is TRUE, . col.lim will be c(min(corr), max(corr)) when is.corr is FALSE NOTICE: if you set col.lim when is.corr is TRUE, the assigning color method is still distributed uniformly in [-1, 1], it only affect the display on color-legend.
Logical, whether the input matrix is a correlation matrix or not. We can visualize the non-correlation matrix by setting is.corr = FALSE. |
I had read the manual, and corrplot does not behave like it should. Notice that in my examples, is.corr is set to FALSE. Hence, col.lim = c(0, 1) should be used. But it is not. Also, notice that in my example, the colors limit are not even set to c(min(corr), max(corr)) (in which case we would have a dark red and a dark blue cell in each example). So there really is a bug. |
@bixiou Can you try the latest version corrplot on github? Here are some examples that works well.
|
The install failed, but I copy/pasted the code of corrplot() from github and it works. Thank you! FYI, here is the install error: |
You should install Thanks again. |
@bixiou I updated corrplot to v0.92 on Github. You can test this bug further if you have time. |
It works well, thank you! |
OK. Thanks. |
Hello,
considering the following code, I would wish that the cell "50" is white and the higher cells blue, but all cells are red (which should be limited to values lower than the middle 50). What am I doing wrong?
corrplot(matrix(c(0.8, 0.5, 0.6, 0.7), ncol=2), method='color', col.lim = c(0, 1), addCoef.col = 'black', addCoefasPercent = T, type="full", is.corr = F)
The text was updated successfully, but these errors were encountered: