Corrplot - How to adjust to the center in Rstudio?

Asked

Viewed 110 times

3

How do I display the center-adjusted corrplot?

When executing the command in Rstudio, the graph is displayed very small and positioned to the lower right.

corrplot(cor.matrix, method="circle")

inserir a descrição da imagem aqui

1 answer

5


Adjust the parameter oma (Outer margin area) of your chart. For example,

library(corrplot)
par(oma=c(0, 15, 15, 0))
corrplot(cor(mtcars))

inserir a descrição da imagem aqui

par(oma=c(0, 0, 0, 0))
corrplot(cor(mtcars))

inserir a descrição da imagem aqui

  • First of all, thank you for the answer. Even applying this parameter is not working. I realized that the problem is the size of my variables, because when it decreases their size by a maximum of 4 characters, it worked perfectly.

  • 1

    Close Rstudio and open again (or reset the R) is also an option. This reestablishes the default parameters for the par()

Browser other questions tagged

You are not signed in. Login or sign up in order to post.