tree_segment_prettify | R Documentation |
Returns a prettier version of the decision tree.
tree_segment_prettify(tree, char_length = 20, print_plot = FALSE)
tree |
The decision tree model to prettify |
char_length |
integer, the character limit before truncating categories and putting them into an "other" group |
print_plot |
logical, indicates whether to print the generated plot or not |
A formatted and "prettified" rpart.plot object. This plot object can be plotted using the rpart::prp function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.