November 2016
Beginner to intermediate
959 pages
43h 46m
English
Similar to rpart, the party package also provides a visualization method for users to plot conditional inference trees. In the following recipe, we will introduce how to use the plot function to visualize conditional inference trees.
You need to have the first recipe completed by generating the conditional inference tree model, ctree.model. In addition to this, you need to have both, trainset and testset, loaded in an R session.
Perform the following steps to visualize the conditional inference tree:
plot function to plot ctree.model built in the last recipe:
> plot(ctree.model)
Figure 6: A conditional inference tree of churn data
Read now
Unlock full access