My corrplot does not fit in the screen?

user5543269 picture user5543269 · May 23, 2016 · Viewed 7.4k times · Source

I have made a corrplot of a dataframe df.Unfortunately the corrplot doesn't fit the screen. The top of the corrplot is missing. How can I make it fit in the screen?

Answer

Viliam Simko picture Viliam Simko · Feb 10, 2017

(I'm a co-developer of corrplot) Recently, I fixed several old bugs from our issue tracker and rendering of top labels was among them. This has been fixed in version 0.82. You can wait until we submit it to CRAN, or you can immediately install it from my development fork:

devtools::install_github("vsimko/corrplot")

Since 0.82, the rendered output looks like this:

library(corrplot)
M <- cor(mtcars)
corrplot(M, order = "hclust", addrect = 3)

enter image description here