'Decision tree graph tools in R

Is it possible to graph the decision tree for more than 3 levels in R?

I used rpart.plot to graph it and 2 of my target value levels were not displayed.

I have entered my coding that way. How would I modify it to plot 5 layers and which package must I add?

fit <- rpart (Range~., data =x_test, method = 'class') 
rpart.plot(fit, type=5,extra = 106) 
r


Solution 1:[1]

The argument: snip, is set to false by default. Set it to true, to interactively trim the tree with the mouse.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1