Closed RSchwinn closed 6 years ago
1) What do you mean? For which function are is the root
argument not working? You should be able to use it like:
collapsibleTree(warpbreaks, c("wool", "tension", "breaks"), root = "custom root name")
2) That's probably a css issue, I'll have to try out networkD3's simpleNetwork
to see what's up with that, but it's most likely this part of my css not being namespaced properly
.node circle {
fill: #fff;
stroke: #000;
}
Fixed the css namespacing issue in the github version, collapsibleTree
and simpleNetwork
should now play better together!
One thing: (1) Running a collapsibleTree seems to interfere with networkD3's simpleNetwork but not vice versa. Specifically the simple network nodes become white. Thank you for your efforts!
PS: The issue is my data. Essentially, I have a data.tree object whose root I cannot rename. I tested with your data before posting but I must have mistyped something because it works now. Sorry.