plot.ODT {ODRF}R Documentation

to plot an oblique decision tree

Description

Draw oblique decision tree with tree structure. It is modified from a function in PPtreeViz library.

Usage

## S3 method for class 'ODT'
plot(x, font.size = 17, width.size = 1, xadj = 0, main = NULL, sub = NULL, ...)

Arguments

x

An object of class ODT.

font.size

Font size of plot

width.size

Size of eclipse in each node.

xadj

The size of the left and right movement.

main

main title

sub

sub title

...

Arguments to be passed to methods.

Value

Tree Structure.

References

Lee, EK(2017) PPtreeViz: An R Package for Visualizing Projection Pursuit Classification Trees, Journal of Statistical Software.

See Also

ODT as.party plot_ODT_depth

Examples

data(iris)
tree <- ODT(Species ~ ., data = iris, split = "gini")
plot(tree)


[Package ODRF version 0.0.4 Index]