corrplot icon indicating copy to clipboard operation
corrplot copied to clipboard

format correlations with nsmall = number.digits

Open the-mad-statter opened this issue 9 months ago • 0 comments

Addresses Issue #275.

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

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

the-mad-statter avatar Apr 29 '24 22:04 the-mad-statter