Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size and number of decimals of coefficients of correlation #36

Closed
ksahlin opened this issue Mar 3, 2016 · 3 comments
Closed

Size and number of decimals of coefficients of correlation #36

ksahlin opened this issue Mar 3, 2016 · 3 comments
Assignees

Comments

@ksahlin
Copy link

ksahlin commented Mar 3, 2016

Hi,

Thanks for the great library. I have a correlation plot with 46 variables. When plotting with method="number", the size of the number exceeds the size of the square. Is it possible to change to font size of the correlations of coefficients? Also, is it possible to change the number of decimals?

If not, this would be two great features!

Best,
Kristoffer

@taiyun
Copy link
Owner

taiyun commented Mar 4, 2016

First question, you can use number.cex to change to font size of the correlations of coefficients:

corrplot(cor(mtcars), method='number', number.cex=0.5)

@taiyun
Copy link
Owner

taiyun commented Mar 4, 2016

Second question, download the development version of the package and use number.digits parameter:

install.packages("devtools")
devtools::install_github("taiyun/corrplot")
corrplot(cor(mtcars), method = 'number', number.digits = 1)

image

corrplot(cor(mtcars), method = 'number', number.digits = 1, number.cex = .5)

image

corrplot(cor(mtcars), method = 'number', addCoefasPercent = TRUE, number.cex = .7)

image

@vsimko
Copy link
Collaborator

vsimko commented Mar 23, 2016

I think, this question has been answered => closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants