| SAMMON {iL04} | R Documentation |
Call the function sammon and preserve labels.
As of R version 1.5.0 you don't need this function. You can call
sammon directly, and labels will be preserved.
SAMMON(dif, dim, ...)
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. |
... |
more arguments to the function sammon. |
A matrix whose rows give the coordinates of each vector, with labels stored as rownames.
RuG/L04 - software for dialectometrics and cartography: http://www.let.rug.nl/~kleiweg/L04/
## Not run:
data(PA)
vec <- SAMMON(PA, 2)
plot(vec, type = "n", xlab = "", ylab = "")
text(vec, rownames(vec), cex = 0.5)
vec8 <- SAMMON(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( sammon( 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)