[Rd] Coloring leaves, twigs and labels in plot.dendrogram()
Nicholas Lewin-Koh
nikko at hailmail.net
Sun Oct 23 20:59:24 CEST 2005
Hi Walton,
Sorry I don't follow R-help very much, but here is a nice solution to
what you are looking for in the A2R package. I don't think it is on cran
yet.
http://addictedtor.free.fr/graphiques/graphcode.php?graph=79
Nicholas
>
> Message: 3
> Date: Sat, 22 Oct 2005 20:12:52 -0400 (EDT)
> From: "Walton A. Green" <walton.green at yale.edu>
> Subject: [Rd] Coloring leaves, twigs and labels in plot.dendrogram()
> To: r-devel at stat.math.ethz.ch
> Message-ID:
> <Pine.LNX.4.44.0510222005200.25034-100000 at ares.its.yale.edu>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>
> Core developers,
>
> I couldn't find any simple way to send a vector of colors to apply to
> each
> terminal in plot.dendrogram() or plot.hclust()---I asked R-help about it
> a
> few weeks ago and didn't get any response---so I hacked that
> functionality
> into the plot.dendrgram code (see below for hacked function plus
> examples)....
>
> Is there any chance this functionality could be added to the base code?
> Unquestionably it can be done more elegantly than below, but surely it
> would be a useful feature to have....
>
> Or is there an easier way of doing this that I have missed?
>
> Walton Green
>
>*************************************
More information about the R-devel
mailing list