[R] Using metric scaling

Murray Jorgensen maj at waikato.ac.nz
Sun Oct 10 02:29:57 CEST 1999


I want to enter a symmetric matrix containing distances for use in the
cmdscale() metric scaling function. The matrix currently sits on a file in
lower triangular form looking like this:

   1 AWANUI RIVER         .000
   2 BLENHEIM             .510   .000
   3 COLLINGWOOD          .510   .109   .000
   4 FOXTON               .510   .141   .141   .000
   5 GISBORNE             .549   .549   .549   .549   .000
   6 HAROTO BAY           .510   .120   .120   .141   .549   .000
   7 HOUHORA HARBOUR      .165   .510   .510   .510   .549   .510   .000
   8 PORANGAHAU           .549   .549   .549   .549   .072   .549   .549
.000
   9 RAWENE               .510   .314   .314   .314   .549   .314   .510
.549
  10 LAKE ROTOITI         .510   .314   .314   .314   .549   .314   .510
.549
 
and so on down to

  38 WHANGANUI INLET      .788   .788   .788   .788   .788   .788   .788
.788

then beginning again with the next 8 columns

   9 RAWENE               .000
  10 LAKE ROTOITI         .223   .000
  11 LAKE ROTORUA         .223   .084   .000

and so on.

Can some tolerant person let me know the way to enter this into a distance
or symmetric matrix structure in R?

Also, in the 'eurodist' example given with cmdscale.html the plot gives the
point labels, but no symbol showing the location of the point. Is it
possible to specify a plotting symbol as well as the label?

Regards,

Murray Jorgensen




-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list