taiyun / corrplot

A visual exploratory tool on correlation matrix
https://github.com/taiyun/corrplot
Other
316 stars 86 forks source link

Top label is cut short when type="lower" #155

Closed LDSamson closed 3 years ago

LDSamson commented 4 years ago

This might be a (minor) bug: The following code will cut off the highest top labels in corrplot version 0.84 (and R version 4.0 or 3.6.0):

library(corrplot)
names(mtcars) <- paste0(names(mtcars), ".longer.name")
M <- cor(mtcars)
corrplot(M, type = "lower", order = "hclust")

image

It does not happen when label is set to "upper":

corrplot(M, type = "lower", order = "hclust")

image

It also does not happen in default mode:

corrplot(M, type = "full", order = "hclust")

image