Re: [R] Rpart decision tree

2012-02-15 Thread Achim Zeileis
On Wed, 15 Feb 2012, dlofaro wrote: Dear R-Users, I'm a R beginner and I have a similar problem: I fitted a SurvivalTree with rpart and I'm tryng to plot with the partykit package by the funcion as.party but it sends me this error: plot(as.party(rpartSurv)) Error in plot.constparty(as.party(r

Re: [R] Rpart decision tree

2012-02-15 Thread dlofaro
Dear R-Users, I'm a R beginner and I have a similar problem: I fitted a SurvivalTree with rpart and I'm tryng to plot with the partykit package by the funcion as.party but it sends me this error: > plot(as.party(rpartSurv)) Error in plot.constparty(as.party(rpartSurv)) : node_surv not yet imple

Re: [R] Rpart decision tree

2011-04-08 Thread tudor
Dear Tal and Achim: Thank you both for your assistance. I followed Achim's suggestions and got what I needed on a Windows machine with R2.12.2 installed. As I needed to run the task on a Windows machine with R2.11.1 I used the package rpart.plot (by Stephen Milborrow) to create my charts. Best

Re: [R] Rpart decision tree

2011-04-08 Thread tudor
Hi Tal: Thanks for your quick reply. I tried to create a classification tree. The problem is that the branches overlap the text in the ellipses (inner nodes) and rectangles (terminal nodes) - At times this makes it difficult for the reader to correctly process the results. One way to overcome

Re: [R] Rpart decision tree

2011-04-08 Thread tudor
Hi Achim: I will give it a try and let you know how it goes. Thanks. Tudor -- View this message in context: http://r.789695.n4.nabble.com/Rpart-decision-tree-tp3435888p3437212.html Sent from the R help mailing list archive at Nabble.com. __ R-help@

Re: [R] Rpart decision tree

2011-04-08 Thread Achim Zeileis
On Fri, 8 Apr 2011, tudor wrote: Dear useRs: I try to plot an rpart object but cannot get a nice tree structure plot. I am using plot.rpart and text.rpart (please see below) but the branches that connect the nodes overlap the text in the ellipses and rectangles. Is there a way to get a clean

Re: [R] Rpart decision tree

2011-04-08 Thread Tal Galili
Hi Tudor, What type of tree did you create? (classification or regression?) Could you give an explanation as to what is not looking nice? Contact Details:--- Contact me: tal.gal...@gmail.com | 972-52-7275845 Read me: www.talgal

[R] Rpart decision tree

2011-04-08 Thread tudor
Dear useRs: I try to plot an rpart object but cannot get a nice tree structure plot. I am using plot.rpart and text.rpart (please see below) but the branches that connect the nodes overlap the text in the ellipses and rectangles. Is there a way to get a clean nice tree plot (as in the Rpart Mayo