title: How to make a tree plot in caret package?
body: <p>I'm using caret package to model the data using rpart package.</p>
  
  <pre><code>library('caret')
  data(iris)
  formula &lt;- as.formula(Species ~.)
  t &lt;- train(formula,iris,method = "rpart",cp=0.002,maxdepth=8)
  plot(t)
  </code></pre>
  
  <p>As a result I get object 't' and I'm trying to plot this object to get tree plot. But the result look like that:
  <img src="https://i.stack.imgur.com/MXuA6.png" alt="enter image description here"></p>
  
  <p>Are there any way to make a tree plot from caret train object?</p>