MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: LeafLabels

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89828] Re: LeafLabels
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sun, 22 Jun 2008 03:21:50 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <g3ihno$fbk$1@smc.vnet.net>

Thomas wrote:

> does anybody know how to assign LeafLabels to a tree in DendrogramPlot[Agglomerate[...]]?
> 
> using DendrogramPlot[...,LeafLabels->...] directly works, but not via the explicit cluster object

Hi Thomas,

I am sure what your problem is exactly: the following works fine either 
with the data set or with the hierarchal cluster returned by Agglomerate[].

data = {{1, 2, 2}, {1, 3, 3}, {2, 4, 2}, {5, 4, 3}, {5, 4, 4}, {7, 6,
     7}};
Needs["HierarchicalClustering`"]
c = Agglomerate[data];
DendrogramPlot[data, LeafLabels -> (# &)]
DendrogramPlot[c, LeafLabels -> (# &)]

Regards,
-- Jean-Marc


  • Prev by Date: MV Crash Bayesian Logistic Model Demo
  • Next by Date: Re: Browsing for a Directory
  • Previous by thread: Re: LeafLabels
  • Next by thread: Re: LeafLabels