Description Usage Arguments Value
This function is an alternative to rpart.plot and other graphing options for decision trees objects generated by rpart
1 | rpart2tidy(rpart_object, text_size = 4, node_spacing = 0.5)
|
rpart_object |
the name of the rpart object |
text_size |
number, defaults to 4 |
node_spacing |
the vertical distance between nodes for purity and nodes for splits values. Defaults to 0.5 |
a list of three dataframes (or tibbles)
nodes.tbl has data for the main nodes
linesegments.tbl has the data for connecting lines
YES_NO.tbl has xy coordinates for small yes-no branching nodes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.