mtrans <- function(d, p){
xo <- median(d)
if(p == 0){
xo + (log10(d) - log10(xo)) / (log10(exp(1)) / xo)
}
else {
xo + (d ^ p - xo ^ p) / (p * xo ^ (p - 1))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.