7) Visualising a C5 Decision Tree.

This Blog entry is from the Probability and Trees section in Learn R.

To visualise a C5 Decision tree, the plot() function from the R base functions can be used, passing the C5 decision tree model as the argument:


Run the line of script to console:


It can be seen that a visualisation has been written out to the plots pane:


If the tree is very large, then the zoom feature will need to be used to ensure that the plot fits the screen.  Even with zoon, it is possibly more appropriate to communicate the product of C5 decision trees as a list of rules, as covered in Blog entries that follow).