treeplot | R Documentation |
Creates a visualization of the tree created when using a tree-based model.
treeplot(model, ...)
model |
The tree-based model to plot. |
... |
Additional plotting parameters that can be passed. See help documentation for rpart.plot for additional information |
m <- tree(survived ~ age + gender + class, data = titanic)
treeplot(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.