[R-lang] colourcoding of leaves in dendrogram

Laura Herbst Laura.Herbst at mpi.nl
Thu Mar 6 12:34:05 PST 2008


Hi R-users

I have plotted a dendrogram from a diana() object. The leaves are always
one out of three categories (e.g. with the labels "1","2","3"). I
would like to visualize the distribution of those categories with
colours, so that for example all leaves labelled "1" get the color
"green", and leaves labelled "2" the color "red" etc.
Does anyone have a suggestion how to do this?

Thank you!

Best
Laura




More information about the R-lang mailing list