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
|