[Rd] plot.dendrogram and expressions

Torsten Hothorn Torsten.Hothorn at rzmail.uni-erlangen.de
Fri Mar 12 15:48:00 MET 2004


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



More information about the R-devel mailing list