df2tree {d3Tree} | R Documentation |
converts dataframe to json to send to javascript
df2tree(struct, rootname = "root", toolTip = NULL)
struct |
data.frame containing the structure the tree will represent |
rootname |
character name of the root node |
toolTip |
charater vector of the label to give to the nodes in each hierarchy |
df2tree(struct = as.data.frame(Titanic),rootname = 'Titanic')
df2tree(struct = as.data.frame(Titanic),rootname = 'Titanic',toolTip = letters[1:5])