From Torsten.Hothorn at rzmail.uni-erlangen.de  Fri Mar 12 15:48:00 2004
From: Torsten.Hothorn at rzmail.uni-erlangen.de (Torsten Hothorn)
Date: Fri Mar 12 15:50:27 2004
Subject: [Rd] plot.dendrogram and expressions
Message-ID: <Pine.LNX.4.51.0403121544260.17294@artemis.imbe.med.uni-erlangen.de>


Hi,

currently the "label" and "edgetext" attributes of a dendrogram are
coerced to character before they are added to a plot with `text'. Is there
a specific reason to do so (expect for the determination of the size of
the character string to be plotted)? Otherwise one could plot the
attributes directly via

diff dendrogram.R /usr/src/R/src/library/stats/R/dendrogram.R
317c317
<               text(xBot, yBot + vln, attr(child,"label"))
---
>               text(xBot, yBot + vln, nodeText)
337c337
<                 text(mx, my, attr(child, "edgetext"))
---
>                 text(mx, my, edgeText)
344c344
<                 text(xBot, my, attr(child, "edgetext"))
---
>                 text(xBot, my, edgeText)

and one could use expressions for plotting symbols.

Best,

Torsten


[Rd] plot.dendrogram and expressions
Torsten Hothorn