[R] Creating dendrograms from a table

From: Michael Conklin <michael.conklin_at_markettools.com>
Date: Thu 25 Jan 2007 - 14:20:53 GMT

I am trying to create a dendrogram object to be able to display a multiway table. I understand how the dendrogram object is structured, a nested list of lists, but I am having trouble trying to create that structure from a table. Basically, what I would like to do is pass a multiway table, say table(a,b,c) to a function and have it display the table as a dendrogram. If a,b,c, and d are all binary variables then I would have a dendrogram with a split on "a", each branch of "a" would have a split on "b", each of the 4 branches produced by this would split on "c" etc. In the leaves I just want to display the count. (The display part is not a problem, just the construction of the nested list.  

Any help is much appreciated.  

Michael Conklin

Chief Methodologist - Advanced Analytics  

MarketTools, Inc.

6465 Wayzata Blvd. Suite 170

Minneapolis, MN 55426

Tel: 952.417.4719 | Mobile:612.201.8978

Michael.Conklin@markettools.com <mailto:Michael.Conklin@markettools.com>  

MarketTools(r) http://www.markettools.com <http://www.markettools.com/>  

This e-mail and any attachments may contain privileged, confidential or proprietary information. If you are not the intended recipient, be aware that any review, copying, or distribution of this e-mail or any attachment is strictly prohibited. If you have received this e-mail in error, please return it to the sender immediately, and permanently delete the original and any copies from your system. Thank you for your cooperation.  

        [[alternative HTML version deleted]]

R-help@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. Received on Fri Jan 26 01:33:40 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 Jan 2007 - 15:30:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.