lefrig2par {delt}R Documentation

Transforms an evaluation tree so that it can be plotted with the "plottree" function of package "denpro"

Description

Evaluation trees are trees which are implemented with "left" and "right" pointers. We transform this tree representation to the representation with "parent" pointers (level set tree), so that it can be plotted with the "plottree" function of package "denpro". For example, functions "densplit" and "eval.pick" return evaluation trees.

Usage

lefrig2par(et)

Arguments

et

evaluation tree; result of "densplit", "eval.pick", "eval.cart", ...; see the documentation of "eval.cart"

Value

Returns a level set tree:

parent

parent links

level

height of the node

center

determines the ordering of the nodes

volume

determines the horizontal positioning of the nodes

Author(s)

Jussi Klemela

See Also

densplit, eval.pick

Examples

library(denpro)
dendat<-sim.data(n=100,seed=5,type="mulmodII")
et<-densplit(dendat)

lst<-lefrig2par(et)

plottree(lst)


[Package delt version 0.8.2 Index]