Closed vsimko closed 3 years ago
I think there is some problem while computing the size of the grid. If there are all NA values in a row or column, then the grid is trimmed and the result is a smaller grid which then overlaps with the labels. At the moment, I don't know exactly where this is computed.
The size of grid is n by n. You can print xy-coordinate on the graph to see the details,
text(1:n, n:1, paste(1:n, n:1, sep='.'))
I already fixed this
However, now the following code does not render well (due to na.label = FALSE
):
cor(mtcars) -> M
M[1,2:3] <- NA
corrplot(M, diag=FALSE, type="upper", na.label = FALSE)