| cmdscale {mva} | R Documentation | 
Classical (Metric) Multidimensional Scaling
Description
Multidimensional scaling takes a set of dissimilarities and returns a set of points such that the distances between the points are approximately equal to the dissimilarities.
The funtions isomds and sammon provide
alternative ordination techniques.
Usage
cmdscale(d, k=2, eig=FALSE)
Arguments
d | 
 a distance structure such as that returned by   | 
k | 
 the dimension of the space which the data are to be represented in.  | 
eig | 
 indicates whether eigenvalues should be returned.  | 
Value
A list containing the following components.
points | 
 a matrix with   | 
eig | 
 if requested,pthe eigenvalues computed during the scaling process.  | 
Note
The S version of this function provides for computing an additional “fiddle” factor suggested by Togerson. R does not provide this option.
References
Seber, G. A. F. (1984). Multivariate Analysis. New York: Wiley.
Torgerson, W. S. (1958). Theory and Methods of Scaling. New York: Wiley.
See Also
dist,
isomds,
sammon.
Examples
data(eurodist)
loc <- cmdscale(eurodist)
x <- loc[,1]
y <- -loc[,2]
plot(x, y, type="n",
	xlim=c(-2500,2500), ylim=c(-2000,2000),
	xlab="", ylab="")
text(x, y, text=names(eurodist), cex=0.5)