link.fun <- function(type){
if (type=="identity"){
out <- function(x){return(identity(x))}
}
if (type=="exp"){
out <- function(x){return(exp(x))}
}
if (type=="logit"){
out <- function(x){return(exp(x)/(1+exp(x)))}
}
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.