corrplot
corrplot copied to clipboard
number.digits argument does not display trailing zeros
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