display.dt: Print out the tree with selected attribute variables up to a...

Description Usage Arguments Examples

View source: R/display.dt.R

Description

Print out the tree with selected attribute variables up to a certain level.

Usage

1
display.dt(tree, ..., levels.shown = tree[["height"]])

Arguments

tree

the data tree object to be printed

...

attribute variables or arguments to be passed on

levels.shown

a numeric value indicating which hierarchy level of the tree to print up to

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(employee)
employee.tree = createTree(employee, "Employee Information",
                           c("Department", "JobRole", "EmployeeNumber"))

# display the employee.tree with selected attribute variables up to the third level
display.dt(employee.tree, 3, "Age", "MonthlyIncome", "Attrition")

## End(Not run)

nzjessica/treevis documentation built on June 27, 2020, 1:20 a.m.