[R] Adding Histograms to Leaves of Rpart Tree or other Dendrogram
Christos Hatzis
christos at nuverabio.com
Fri Feb 2 23:19:11 CET 2007
Hi Jon,
Take a look at this graph
http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=85
I think it is very close to what you need (source code provided at the
site).
-Christos
Christos Hatzis, Ph.D.
Nuvera Biosciences, Inc.
400 West Cummings Park
Suite 5350
Woburn, MA 01801
Tel: 781-938-3830
www.nuverabio.com
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jonathan Zelner
> Sent: Friday, February 02, 2007 5:07 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Adding Histograms to Leaves of Rpart Tree or
> other Dendrogram
>
> Hi - I'm trying to append simple density histograms of a
> continuous variable to the leaves of an rpart tree.
>
> The splits in the tree are all levels of a factor and I'm
> hoping to make the histograms out of the subsets of the
> dataframe corresponding to the splits and for them to be
> attached to the appropriate leaf of the final tree.
>
> Any help would be much appreciated,
> thanks,
> Jon Zelner
>
> University of Michigan
> Gerald R. Ford School of Public Policy
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
>
More information about the R-help
mailing list