How to make a tree plot in caret package?
Had the same problem, but the answers given here wouldn't solve it, since I used a random forest instead of a tree, the following is for all coming here having the same issue:
In short: A tree can only be displayed when the method is something like:
method = "rpart"
Using a random forest
method = "rf"
will result in the following plot:
Extended answer already here:Plot decision tree in R (Caret)