I just built a basic classification model with package caret using the "xgbTree" method (Extreme Gradient Boosting).  It has great accuracy (3 classes) but I can't see the rules or plot the tree.
Does any one know how to plot the tree, when it is built with caret? I tried using thexgb.plot.tree function from the xgboost package, but I get an error indicating it can't be plotted because my model is not an object of class xgb.Booster generated by the xgb.train function.  Is there a way I can coerce the model I built in caret into an xgb.Booster object?
I appreciate any help.
 
     
     
    