From deepayan.sarkar at gmail.com  Mon Apr 23 23:14:33 2007
From: deepayan.sarkar at gmail.com (Deepayan Sarkar)
Date: Mon, 23 Apr 2007 14:14:33 -0700
Subject: [Rd] dendrogram definition
In-Reply-To: <17964.28245.673639.140342@lxh5.stat.uni-muenchen.de>
References: <eb555e660704201446j58dd4cb2p6efb5d389c0a010f@mail.gmail.com>
	<17964.28245.673639.140342@lxh5.stat.uni-muenchen.de>
Message-ID: <eb555e660704231414t10419ab8wfd3f92501926e624@mail.gmail.com>

On 4/23/07, Friedrich Leisch <friedrich.leisch at stat.uni-muenchen.de> wrote:
> >>>>> On Fri, 20 Apr 2007 14:46:33 -0700,
> >>>>> Deepayan Sarkar (DS) wrote:
>
>   > Hi,
>   > I'm trying to create a "grob" representing a dendrogram object (for
>   > use as a legend with lattice), and I have a question regarding how a
>   > "dendrogram" should be interpreted. Are they by definition binary
>   > trees or can they in principle have more than two children?
>
> They can have more than 2 children, and class "dendrogram" supports
> this. However, as most trees are currently created using hclust, all
> examples have binary trees.

Thanks, that's what my guess was since the help page doesn't say
anything special about binary trees. My code should work in either
case.

In case anyone's interested, there's an example of a lattice/grid heatmap at

http://dsarkar.fhcrc.org/R/heatmap/lattice-heatmap.pdf

(the primary benefit for me is better control over aspect ratio).

-Deepayan



[Rd] dendrogram definition
Deepayan Sarkar