Data Science Desktop Survival Guide
by Graham Williams |
|||||
Party Tree |
The party package can be used to draw rpart decision trees using as.party() from partykit which can be installed from R-Forge:
install.packages("partykit", repos="http://R-Forge.R-project.org")
library(partykit)
|
class(model)
plot(as.party(model))
The textual presentation of an rpart decision tree can also be improved using party.
|
print(as.party(model))
|