###### -- unit normalize a vector ---------------------------------------------
NormVec <- function(vec) {
vec <- vec / sqrt(sum(vec^2))
return(vec)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.