sund2bBreadcrumb {sunburstR} | R Documentation |
Advanced Customization of 'd2b' Breadcrumb
Description
Advanced Customization of 'd2b' Breadcrumb
Usage
sund2bBreadcrumb(enabled = NULL, html = NULL, orient = NULL)
Arguments
enabled |
|
html |
|
orient |
|
Value
list
Examples
if(interactive()){
library(sunburstR)
# use a sample of the sequences csv data
sequences <- read.csv(
system.file("examples/visit-sequences.csv",package="sunburstR")
,header = FALSE
,stringsAsFactors = FALSE
)[1:200,]
# disable the breadcrumb
sund2b(
sequences,
breadcrumbs = sund2bBreadcrumb(
enabled = FALSE
)
)
# change the breadcrumb content
sund2b(
sequences,
breadcrumbs = sund2bBreadcrumb(
html = htmlwidgets::JS("
function(nodedata, size, percent) {
return '<span style=\"font-weight: bold;\">' + nodedata.name + '</span>' + ' ' + size
}
")
)
)
}
[Package sunburstR version 2.1.8 Index]