df2tree {d3Tree}R Documentation

df2tree

Description

converts dataframe to json to send to javascript

Usage

df2tree(struct, rootname = "root", toolTip = NULL)

Arguments

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

Examples

 
df2tree(struct = as.data.frame(Titanic),rootname = 'Titanic')
df2tree(struct = as.data.frame(Titanic),rootname = 'Titanic',toolTip = letters[1:5])

[Package d3Tree version 0.2.2 Index]