normalize <- function(text, distances) { min <- min(distances) max <- nchar(text) * MAX_DIFFERENCE - min 1 - ((distances - min) / max) }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.