title: Decision Tree visualization error in rattle Error: the FUN argument to prp is not a function
body: <p>I created a decision tree in rattle for the in-built wine dataset.<br>
  The output is shown below</p>
  
  <p>Summary of the Decision Tree model for Classification (built using 'rpart'):</p>
  
  <pre><code>library(rpart)
  library(rattle)
  
  n= 124 
  
  node), split, n, loss, yval, (yprob)
        * denotes terminal node
  
   1) root 124 73 2 (0.30645161 0.41129032 0.28225806)  
     2) Proline&gt;=953.5 33  0 1 (1.00000000 0.00000000 0.00000000) *
     3) Proline&lt; 953.5 91 40 2 (0.05494505 0.56043956 0.38461538)  
       6) Intensity&lt; 3.825 44  0 2 (0.00000000 1.00000000 0.00000000) *
       7) Intensity&gt;=3.825 47 12 3 (0.10638298 0.14893617 0.74468085)  
        14) Flavanoids&gt;=1.385 13  6 2 (0.38461538 0.53846154 0.07692308) *
        15) Flavanoids&lt; 1.385 34  0 3 (0.00000000 0.00000000 1.00000000) *
  
  Classification tree:
  rpart(formula = Class ~ ., data = crs$dataset[crs$train, c(crs$input, 
      crs$target)], method = "class", parms = list(split = "information"), 
      control = rpart.control(usesurrogate = 0, maxsurrogate = 0))
  
  Variables actually used in tree construction:
  [1] Flavanoids Intensity  Proline   
  
  Root node error: 73/124 = 0.58871
  
  n= 124 
  
          CP nsplit rel error  xerror     xstd
  1 0.452055      0  1.000000 1.00000 0.075061
  2 0.383562      1  0.547945 0.52055 0.070325
  3 0.082192      2  0.164384 0.26027 0.054946
  4 0.010000      3  0.082192 0.21918 0.051137
  
  Time taken: 0.02 secs
  </code></pre>
  
  <p>The rules are listed below</p>
  
  <pre><code>Tree as rules: 
  
   Rule number: 2 [Class=1 cover=33 (27%) prob=1.00]
     Proline&gt;=953.5
  
   Rule number: 14 [Class=2 cover=13 (10%) prob=0.38]
     Proline&lt; 953.5
     Intensity&gt;=3.825
     Flavanoids&gt;=1.385
  
   Rule number: 15 [Class=3 cover=34 (27%) prob=0.00]
     Proline&lt; 953.5
     Intensity&gt;=3.825
     Flavanoids&lt; 1.385
  
   Rule number: 6 [Class=2 cover=44 (35%) prob=0.00]
     Proline&lt; 953.5
     Intensity&lt; 3.825
  
  [1] 2 6 1 5 3 7 4
  </code></pre>
  
  <p>The output plot which I got is shown below <br><br>
  <img src="https://i.stack.imgur.com/5dQBt.png" alt="The output of the tree plot"></p>
  
  <p>When I try to plot the tree, it is showing only the outline of the nodes. Nothing else is listed. <br>I tried with different datasets. All are showing the same result.  <br>All plots other than decision tree are working perfectly fine.</p>
  
  <p>How to resolve this? Is this related to any package problem?</p>