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
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
: 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)
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
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
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
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
7 matches
Mail list logo