[R] Plot with CART results

Terry Therneau therneau at mayo.edu
Fri Oct 9 15:13:06 CEST 2009


---------begin included message -----------
With "rpart" we can get several terminals and  draw it in the TREE plot.
Now I am trying to draw a plot like this: x-axis is each terminal's
value, and y-axis is those observe values. Does anyone has idea what
gramma should I use? Thanks in advance.
-------------end --------------

It sounds like you want to plot predicted versus observed.
  fit <- rpart(y ~ .....
  plot(predict(fit), y)




More information about the R-help mailing list