20.54 Enhanced Plots: Show the Node Numbers

prp(model, type=2, extra=106, nn=TRUE)

We now take our favourite plot (type=2 and extra=106) and explore some of the other options available for rpart.plot::prp() from .

Here we add the node numbers as they appear in the textual version of the model, and also often for rule sets generated from the decision tree.

Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0