sund2bTooltip {sunburstR} | R Documentation |
Advanced Customization of 'd2b' Tooltip
Description
Advanced Customization of 'd2b' Tooltip
Usage
sund2bTooltip(at = NULL, followMouse = NULL, html = NULL, my = NULL)
Arguments
at |
|
followMouse |
|
html |
|
my |
|
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,]
# change the tooltip
sund2b(
sequences,
tooltip = sund2bTooltip(
html = htmlwidgets::JS("
function(nodedata, size, percent) {
return '<span style=\"font-weight: bold;\">' + nodedata.name + '</span>' + ' ' + size
}
")
)
)
}
[Package sunburstR version 2.1.8 Index]