rootLabel in sund2b is not working
ManuelSpinola opened this issue · 1 comments
ManuelSpinola commented
The rootLabel argument in sund2b is not working
sequences <- read.csv(
system.file("examples/visit-sequences.csv",package="sunburstR")
,header = FALSE
,stringsAsFactors = FALSE
)[1:200,]
sund2b(sequences, rootLabel = "raíz")
timelyportfolio commented
@ManuelSpinola looks like there is a bug here. I have submitted a patch in the master
branch of Github that should fix the problem.
# devtools::install_github("timelyportfolio/sunburstR")
sequences <- read.csv(
system.file("examples/visit-sequences.csv",package="sunburstR")
,header = FALSE
,stringsAsFactors = FALSE
)[1:200,]
sund2b(sequences, rootLabel = "raíz")
For additional information, providing JSON
hierarchy with d3_nest
is much more robust than the original csv
method. d3_nest
provides an argument root
that allows specification of the root name/label for the hierarchy.