Use "pretty" option in "text" function:

plot(mytree)
text(mytree, pretty=0)

> -----Original Message-----
> From: Peter Flom [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 18, 2003 3:21 PM
> To: [EMAIL PROTECTED]
> Subject: [R] Tree question with ordinal IV and split labels
> 
> 
> Hi
> 
> I have a tree, created in rpart.  One of the IVs is an ordinal
> variable.  I would like to get the splits labeled with the LEVELS of
> this factor, rather than a,b,c, and d.  
> 
> Is there a way to do this?
> 
> Thanks in advance
> 
> 
> 
> Peter L. Flom, PhD
> Assistant Director, Statistics and Data Analysis Core
> Center for Drug Use and HIV Research
> National Development and Research Institutes
> 71 W. 23rd St
> www.peterflom.com
> New York, NY 10010
> (212) 845-4485 (voice)
> (917) 438-0894 (fax)
> 
> ______________________________________________
> [EMAIL PROTECTED] mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

"Secure Server <ingenixps.com>" made the following
 annotations on 07/18/03 15:35:19
------------------------------------------------------------------------------
"This e-mail, including attachments, may include confidential and/or proprietary 
information, and may be used only by the person or entity to which it is addressed. If 
the reader of this e-mail is not the intended recipient or his or her authorized 
agent, the reader is hereby notified that any dissemination, distribution or copying 
of this e-mail is prohibited. If you have received this e-mail in error, please notify 
the sender by replying to this message and delete this e-mail immediately."

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to