set_threshold <- function(.data,clfcol,threshold)
{
.data %>%
mutate(gtype= case_when(eval(parse(text = clfcol))>threshold~ gtype,
TRUE ~ 'NC'))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.