#' @export
GetNodeLabel <- function(node) {
if(node$isLeaf) {
label = node$class
} else {
label = node$feature
}
}
#' @export
GetEdgeLabel <- function(node) {
if(!node$isRoot) {
label = node$name
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.