Hi all!

I am having problems with the “plotly” package in R, in particular with the “sunburst” type of graph.

When I specify *branchvalues = “remainder”* the result is as expected (but not what I want), whereas when I specify *branchvalues = “total”* the result is an empty graph.

To illustrate this, please compare the following two R codes differing only in the “branchvalues” option:

plot_ly(

labels = c(“Seth”, “Enos”, “Noam”, “Awan”, “Enoch”),

parents = c("", “Seth”, “Seth”, “”, “Awan”),

values = c(12, 10, 2, 4, 4),

type = ‘sunburst’,

branchvalues = ‘remainder’

)

plot_ly(

labels = c(“Seth”, “Enos”, “Noam”, “Awan”, “Enoch”),

parents = c("", “Seth”, “Seth”, “”, “Awan”),

values = c(12, 10, 2, 4, 4),

type = ‘sunburst’,

branchvalues = ‘total’

)

The first one works, whereas the second one returns an empty graph.

Am I doing something wrong?

Any help is highly appreciated!!!

BB