Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201919

How to generate organisational chart/tree with numbers

$
0
0

I am currently trying to generate an organisation structure/tree for my organization with some aggregated data. This is quite a large organisation so there will be hundreds of nodes and edges. I am wanting to generate a tree that captures the total denominator of each leaf, and the number of people in each leaf that has completed their training. Currently my data is captured in a data frame that is similar to the one below:

Hospital Department    Ward Total Completed.Training
A        Cardiology    64   53    44 
A        ED            54   45    23
A        ICU           3    22    21
B        ED            66   50    12
B        ICU           64   20    15
B        Neonates      35   15    13
B        Surgery       22   12    12 
C        Mental.Health F15  44    34 
C        ED            B43  25    18 
C        Orthopaedics  C53  34    32

Which package would you recommend for such a plot?


Viewing all articles
Browse latest Browse all 201919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>