Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My corrplot does not fit in the screen?

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?

like image 493
user5543269 Avatar asked May 23 '16 10:05

user5543269


People also ask

How do I increase the size of a Corrplot in R?

Adding a line like par( ps=14) before corrplot should make the text larger.

What does corrplot show?

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.

Is Corr false?

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).


1 Answers

(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

like image 181
Viliam Simko Avatar answered Oct 01 '22 22:10

Viliam Simko