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

number.digits argument does not display trailing zeros #275

Closed
the-mad-statter opened this issue Apr 29, 2024 · 1 comment
Closed

number.digits argument does not display trailing zeros #275

the-mad-statter opened this issue Apr 29, 2024 · 1 comment

Comments

@the-mad-statter
Copy link
Contributor

The correlation between drat and gear is listed as 0.7 and not 0.70.

library(dplyr)
library(corrplot)

M <- mtcars |> select(gear, am, drat) |> cor()

corrplot(
  M, 
  type = "lower", 
  diag = FALSE, 
  addCoef.col = "black", 
  number.digits = 2
)

Created on 2024-04-29 with reprex v2.1.0

@taiyun
Copy link
Owner

taiyun commented Aug 2, 2024

Thanks

@taiyun taiyun closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants