Format numbers to 2 decimal places
scale_fun.Rd
This function formats a numeric vector to display numbers with 2 decimal places.
Examples
x <- c(9.3475, 0.1974)
scale_fun(x)
#> [1] "9.35" "0.20"
scale_fun.Rd
This function formats a numeric vector to display numbers with 2 decimal places.
x <- c(9.3475, 0.1974)
scale_fun(x)
#> [1] "9.35" "0.20"