"absToRel" <- function(parmVec, respl, typeCalc)
{
## Converting absolute to relative
if (typeCalc == "absolute")
{
p <- 100 * ((parmVec[3] - respl) / (parmVec[3] - parmVec[2]))
} else {
p <- respl
}
p
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.