first of all thanks for this great R package and your well documented vignette, which makes it really easy to figure out for new users how to create nice sunburst-plots (once figured out, how data needs to be structured).
My use-case was to export a self-contained HTML-version of the plot using the R package htmlwidgets.
Although the error only occurs using the htmlwidgets R package, I think the error is related to your sunburstR package due to the different behaviour of exporting HTML pages of the both functions sunburst and sund2b.
Hello @timelyportfolio,
first of all thanks for this great R package and your well documented vignette, which makes it really easy to figure out for new users how to create nice sunburst-plots (once figured out, how data needs to be structured).
My use-case was to export a self-contained HTML-version of the plot using the R package
htmlwidgets
.Although the error only occurs using the
htmlwidgets
R package, I think the error is related to yoursunburstR
package due to the different behaviour of exporting HTML pages of the both functionssunburst
andsund2b
.Here is a minimal reproducible example:
htmlwidgets::saveWidget
creates an HTML-page not displaying the plot but some JS/HTML code.Instead, using the
sund2b
function to create the plot and exporting it with the samehtmlwidgets::saveWidget
command produces the desired result:So I think, the issue is somehow related to the
sunburst
function and how it stores the information to produce its HTML view.