[R] is then an equivalent of partition.tree for rpart?

David Marimont marimont at nxpdata.com
Tue Jan 8 00:39:31 CET 2002


partition.tree plots in 2d the partition of a classification tree produced by the function
tree (assuming the data frame from which it was computed has two continuous predictors).
I get an error when I feed a tree produced by rpart to partition.tree (since trees
produced by rpart are superclasses of those produced by tree).  Is there an equivalent of
partition.tree for objects of class rpart?  Actually, what I'd really like is one that
worked for any number of continuous predictors, but let me choose which two to plot.  Thanks.

   David Marimont
   NXP Data Analysis, Inc.
   http://www.nxpdata.com

P.S.  All terminology is approximate.  Corrections welcome.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list