Syedam
April 3, 2020, 9:01am
1
This was splitted from this related thread app.R did not return a shiny.appobj object
I want to create this type of tree (https://bl.ocks.org/mbhall88/126b3c2c54215b4d1ffbd2d778ce3973 ) with collapsible tree package. I want to add number of nodes within the circle. Is there any way to add this feature in the code?
possible but not trivial.
Suite of tools for using 'D3', a library for producing dynamic, interactive data
visualizations. Supports translating objects into 'D3' friendly data structures, rendering
'D3' scripts, publishing 'D3' visualizations, incorporating 'D3' in R...
Syedam
April 3, 2020, 3:35pm
3
Thankyou so much for your response. Actually collapsibletree package allow me to create this type of figure(https://adeelk93.github.io/collapsibleTree/ )
But i want to add number of nodes within the circle. as in this example https://bl.ocks.org/mbhall88/126b3c2c54215b4d1ffbd2d778ce3973 .
Is it possible to add number of nodes within the circle using Rstudio.
if you want to use that package rather than roll your own d3 script, then you are limited by what has been implemented.
You could track this issue, and you could add your own post to add your weight to the request.
opened 12:14PM - 03 Apr 20 UTC
I'm using the collapsibletree package to create a tree diagram as below. However… , as you can see, the node names are rather untidy. Is there a way to embed the node names inside the coloured nodes (rather than adjacent to them, as pictured?) and alter the spacing between node levels (some of the names cut into previous nodes!). I'm open to using alternative r packages too.
Thanks
[![enter image description here][1]][1]
For reference, here's the code used to produce it
```
collapsibleTree(
Geography_Data,
hierarchy = c("continent", "type", "country"),
width = 800,
zoomable = FALSE
)
```
[1]: https://i.stack.imgur.com/WbRwn.png
system
Closed
April 24, 2020, 3:40pm
5
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.