-
Notifications
You must be signed in to change notification settings - Fork 86
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
Plotted NAs should be different from zeroes #46
Labels
Comments
vsimko
referenced
this issue
in vsimko/corrplot
Mar 16, 2016
vsimko
added a commit
to vsimko/corrplot
that referenced
this issue
Mar 16, 2016
- added parameters `na.label` and `na.label.col`
vsimko
added a commit
to vsimko/corrplot
that referenced
this issue
Mar 16, 2016
vsimko
added a commit
to vsimko/corrplot
that referenced
this issue
Mar 16, 2016
vsimko
added a commit
to vsimko/corrplot
that referenced
this issue
Mar 16, 2016
vsimko
added a commit
to vsimko/corrplot
that referenced
this issue
Mar 16, 2016
Now it is possible to use parameters Here are some examples: M <- cor(mtcars)
diag(M) <- NA
M[4,2] <- NA # default with questionmarks
corrplot(M) # black square instead of the label
corrplot(M, na.label = "square", na.label.col = "black") # large matrix with some NAs on diagonal and a rectangle of zeros in the middle
M <- matrix(runif(10000, 0.5, 1), nrow = 100)
M[40:50,30:70] <- 0
diag(M) <- NA
corrplot(M, method = "color", cl.pos = "n", tl.pos = "n",
na.label = "square", addgrid.col = NA) |
This was referenced Mar 23, 2016
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As pointed out by @taiyun we should distinguish between 0 and NA in the plot.
The text was updated successfully, but these errors were encountered: