Re: [R] how to label the branches of a tree

2009-02-25 Thread David Winsemius
ut I want to label the branches itself and not the branching points or the leaves. Regards Utkarsh From: Philip Twumasi-Ankrah [mailto:nana_kwadwo_der...@yahoo.com] Sent: Wednesday, February 25, 2009 9:07 PM To: Utkarsh Singhal Cc: R-help Forum Subject: Re: [R] how to label the branches of

Re: [R] how to label the branches of a tree

2009-02-25 Thread David Winsemius
krah [mailto:nana_kwadwo_der...@yahoo.com] Sent: Wednesday, February 25, 2009 9:07 PM To: Utkarsh Singhal Cc: R-help Forum Subject: Re: [R] how to label the branches of a tree You may have to change/scale the sizes of the font by using "cex" and then to keep all labels within the plotting windo

Re: [R] how to label the branches of a tree

2009-02-25 Thread Utkarsh Singhal
: Utkarsh Singhal Cc: R-help Forum Subject: Re: [R] how to label the branches of a tree You may have to change/scale the sizes of the font by using "cex" and then to keep all labels within the plotting window, use "xpd=TRUE". Like in text(fit, use.n=TRUE, cex=0.8, xpd=TRUE)

Re: [R] how to label the branches of a tree

2009-02-25 Thread Philip Twumasi-Ankrah
t Rewards Everything   - Anonymous Happiness is not perfected until it is shared   -Jane Porter   --- On Wed, 2/25/09, David Winsemius wrote: From: David Winsemius Subject: Re: [R] how to label the branches of a tree

Re: [R] how to label the branches of a tree

2009-02-25 Thread Prof Brian Ripley
On Wed, 25 Feb 2009, David Winsemius wrote: When I execute that code, I get labels both on the branching points and at the leaves of the tree. So I guess my reply is "cannot reproduce" or "do not understand". They are however not properly positioned and the edges and bottoms of some of the la

Re: [R] how to label the branches of a tree

2009-02-25 Thread David Winsemius
When I execute that code, I get labels both on the branching points and at the leaves of the tree. So I guess my reply is "cannot reproduce" or "do not understand". They are however not properly positioned and the edges and bottoms of some of the labels are cut off, but that did not sound

[R] how to label the branches of a tree

2009-02-24 Thread Utkarsh Singhal
Hi, I am using rpart package to fit classification trees. library(rpart) fit <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis) plot(fit,uniform=T) text(fit, use.n=TRUE) But I am unable to label the branches (not the nodes) of the tree. Can somebody help me out in this? T