[R] Help required for using the prettyTree() to plot a regression tree graphically.......!!!!!!

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Feb 9 16:58:51 CET 2014


On 09/02/2014 15:52, Ista Zahn wrote:
> On Sun, Feb 9, 2014 at 7:20 AM, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
>> You seem to be under the impression that prettyTree() is something to do
>> with package rpart: it is not.
>>
>> You need to ask the person who told you about prettyTree() where to find it.
>
> OR:
>
> install.packages("sos")
> library(sos)
> findFn("prettyTree")

That answer assumes it is from a CRAN package ... it could equally be in 
some local course notes/package.

For plotting trees from rpart there is a third-party package rpart.plot 
(but that does not supply prettyTree).

>
> Best,
> Ista
>>
>>
>> On 09/02/2014 07:49, Nasim Hasan wrote:
>>>
>>> Dear All,
>>>                 I am Nasim Hasan a CS Student of New Mexico State
>>> University(NMSU). I am using R for my course work on the topics of Big-Data.
>>> My OS is Windows Seven and I using R's windows  version of 3.0.2 along with
>>> the R-Studio of version 0.98.495.
>>>                 The problem is that, I can not use prettyTree() for
>>> plotting a Tree.Though, I have included the library function of rpart and
>>> also downloaded as well as installed the package of rpart.So, can anyone
>>> kindly tell me that what is the problem..??What else should I need to do in
>>> order to use prettyTree()...?? or are there any packages, which can be used
>>> as the substitute of prettyTree()...??
>>>                    Please, notify me about those.Thanks to all of you in
>>> advance....!!!
>>>
>>> Best Regards,
>>> Nasim Hasan
>>> CS Dept. Student
>>> NMSU
>>>
>>>
>>>          [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>> PLEASE do.
>>
>>
>>
>> --
>> Brian D. Ripley,                  ripley at 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 272866 (PA)
>> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>>
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.


-- 
Brian D. Ripley,                  ripley at 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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list