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?
Adding a line like par( ps=14) before corrplot should make the text larger.
R package corrplot provides a visual exploratory tool on correlation matrix that supports automatic variable reordering to help detect hidden patterns among variables. corrplot is very easy to use and provides a rich array of plotting options in visualization method, graphic layout, color, legend, text labels, etc.
corr is FALSE and corr is a non-negative or non-positive matrix, the default value will be COL1(YlOrBr,200); otherwise (elements are partly positive and partly negative), the default value will be COL2(RdBu,200).
(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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With