Weird output from `corrplot`

43 Views Asked by At

I am working with corrplot library and this is the code:

corrplot(correlation_matrix, method = "number", 
         number.cex = 0.6,
         tl.col = "black", 
         type = "lower", 
         tl.srt = 45)

Surprisingly it outputs this strange plot: enter image description here

Any idea why this happens? I build the correlation matrix directly looking from the documentation.

1

There are 1 best solutions below

0
Giordano Vitale On

I found out how to fix it. I have to specify "corrplot::" as follows:

corrplot::corrplot(correlation_matrix, method = "number", 
         number.cex = 0.6,
         tl.col = "black", 
         type = "lower", 
         tl.srt = 45)

And the result is: enter image description here