Calculates the coefficient of variation, also known as relative standard deviation, which is given by $$sd(x)/mean(x)$$
Details
This is not meaningful if mean is close to 0. For such cases, set adjust = TRUE
.
This will add min(x)
to x
Examples
if (FALSE) { # \dontrun{
mplot3_x(sapply(1:100, function(x) cov(rnorm(100))), "d", xlab = "rnorm(100) x 100 times")
# cov of rnorm without adjustment is all over the place
mplot3_x(sapply(1:100, function(x) cov(rnorm(100), adjust = T)), "d",
xlab = "rnorm(100) x 100 times"
)
# COV after shifting above 1 is what you probably want
} # }