[R] change individual label colours in a cluster plot?

Jim Ottaway j.ottaway at lse.ac.uk
Thu Feb 5 14:44:21 CET 2009

I am doing some bibliometric analysis of interdisciplinarity using
cluster analysis of co-authorship.

I'd like to be able to specify the colour of individual authors in the
labels to show a prior grouping by discipline (red for sociology
authors, blue for economics authors, ..., that sort of thing).

Is there any way of doing this sort of thing? I'm hoping for something like:

h <- hclust(authors.dist)

h$labels <- colorlabels(c("red", "blue",..., "green"))


More information about the R-help mailing list