[R] dist label names

L.Stirton at uea.ac.uk L.Stirton at uea.ac.uk
Wed Apr 25 22:59:35 CEST 2007


Hello,

I am trying to do a multi-dimensional scaling of the World Bank's quality
of governance indicators for the Balkan region. I am having trouble
labelling my plot. Could some kind person help me out. How do I set the
attribute Label by a variable (say, "Code")? At present I get this:

>qog.dist<-dist(Balkans.data, method = "euclidean", diag = FALSE, upper =
>FALSE)
labels(qog.dist)
 [1] "1"  "2"  "3"  "4"  "5"  "6"  "7"  "8"  "9"  "10"

I know this must be a really basic questions, but none of the 5-6 books on
my shelf nor a web search have proved much help. In case you hadn't
guessed, I am pretty new to R.

Lindsay



More information about the R-help mailing list