Re: [R] Rpart decision tree

From: Tal Galili <tal.galili_at_gmail.com>
Date: Fri, 08 Apr 2011 16:04:48 +0300

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.Galili_at_gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English)

On Fri, Apr 8, 2011 at 2:03 PM, tudor <tudor_bodea_at_hotmail.com> 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 nice tree plot (as in the Rpart Mayo report)? I work
> under Windows and use R2.11.1 with rpart version 3.1-46.
>
> Thank you.
>
> Tudor
>
> ...
> plot(cart, uniform=TRUE, branch=0.25, compress=TRUE, margin=0.25)
> text(cart, use.n=TRUE, all=TRUE, fancy=TRUE, fheight=0.95)
> ...
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Rpart-decision-tree-tp3435888p3435888.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 08 Apr 2011 - 13:13:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Apr 2011 - 19:40:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive