Hi,
Your matrix needs to either be symmetric or an object of class dist.
Here's one way to reformat it:
Note that calling it dist is a poor idea, since dist() is a base function.
Also note that if the distance from 1-2 is 1 while distance from 2-1 is
Inf, as in your original matrix, then you
Hi,
I'm trying to use isoMDS to project a directed graph to 2-dim vectors, but I
got an error.
#here is the code to create the graph using igraph package and run isoMDS on it.
library(igraph)
library(MASS)
g<-make_graph(c(1,2, 2,3, 2,4, 3,4, 4,5, 5,6, 3,6, 1,6, 2,5),directed=TRUE)
dist<-distance
2 matches
Mail list logo