ISOMDS {iL04}R Documentation

A wrapper for the isoMDS function

Description

Call the function isoMDS and preserve labels.

As of R version 1.5.0 you don't need this function. You can call isoMDS directly, and labels will be preserved.

Usage

  ISOMDS(dif, dim, y = cmdscale(dif, dim), ...)

Arguments

dif an object of class dist, with labels stored in the attribute Labels.
dim the dimension of the space which the data are to be represented in.
y an initial configuration. If none is supplied, cmdscale is used to provide the classical solution.
... more arguments to the function isoMDS.

Value

A matrix whose rows give the coordinates of each vector, with labels stored as rownames.

References

RuG/L04 - software for dialectometrics and cartography: http://www.let.rug.nl/~kleiweg/L04/

See Also

isoMDS, MDS, SAMMON

Examples

## Not run: 
data(PA)
vec <- ISOMDS(PA, 2)
plot(vec, type = "n", xlab = "", ylab = "")
text(vec, rownames(vec), cex = 0.5)

vec8 <- ISOMDS(PA, 8)
d2 <- dist(vec)
d8 <- dist(vec8)
cor(PA, d2)
cor(PA, d8)

plot(range(PA), range(d2, d8), type = "n",
     xlab = "PA", ylab = "dist( isoMDS( PA ) )")
points(PA, d2, pch = 20, cex = 0.5, col = "black")
points(PA, d8, pch = 20, cex = 0.5, col = "blue")
legend(min(PA), max(d2, d8),
       c("dim = 2", "dim = 8"), fill = c("black", "blue"))

## End(Not run)

[Package iL04 version 1.15 Index]