plot.ODT | R Documentation |
Draw oblique decision tree with tree structure. It is modified from a function in PPtreeViz
library.
## S3 method for class 'ODT'
plot(x, font.size = 17, width.size = 1, xadj = 0, main = NULL, sub = NULL, ...)
x |
An object of class |
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. |
Tree Structure.
Lee, EK(2017) PPtreeViz: An R Package for Visualizing Projection Pursuit Classification Trees, Journal of Statistical Software.
ODT
as.party
plot_ODT_depth
data(iris)
tree <- ODT(Species ~ ., data = iris, split = "gini")
plot(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.