s-news
[Top] [All Lists]

Re: [S] plot tree

To: "Gibiansky, Leonid" <gibianskyl@globomax.com>
Subject: Re: [S] plot tree
From: Prof Brian D Ripley <ripley@stats.ox.ac.uk>
Date: Wed, 31 May 2000 07:51:52 +0100 (BST)
Cc: "splus (E-mail)" <s-news@wubios.wustl.edu>
In-reply-to: <Pine.GSO.4.05.10005310622470.18736-100000@auk.stats>
Sender: owner-s-news@wubios.wustl.edu
On Wed, 31 May 2000, Prof Brian D Ripley wrote:

> 
> On Tue, 30 May 2000, Gibiansky, Leonid wrote:
> 
> > I need to plot the tree, and I am using post.tree() function to do it.
> > However, I need to include the plots into the Word document, and Word does
> > not like .ps files. 
> 
> Eh?  Word has no problem with .ps files, and we use them all the time.
> Maybe you or your computer or printer does, in which can you can convert
> .ps using GhostScript.
> 
> > Is there any other plot.tree() function that would
> > produce the plot of the tree, with all the necessary information included
> > into the plot ? The default plot.tree function shows only branches, without
> > names of the variables, predicted outcome, statistics etc. 
> 
> You can use post.rpart in library rpart, as far as I recall. That
> uses standard S plotting functions.


I've just realised that the problem may be simpler: you need to use
text.tree to add the splits, the predicted outcome, etc.  But that
_is_ in the example in ?plot.tree.  Although you can do a lot with
text.tree, you cannot do as much as post.tree or post.rpart do.


-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>