powered by
This distance matrix between two points is the length of the shortest path between these points.
dist.neig(neig)
returns a distance matrix, object of class dist
dist
a neighbouring graph, object of class neig
neig
Daniel Chessel Stéphane Dray stephane.dray@univ-lyon1.fr
data(elec88) d0 <- dist.neig(elec88$neig) plot(dist(elec88$xy),d0)
Run the code above in your browser using DataLab