dmap.check {MDSMap} | R Documentation |
Reorders a distance map by a new marker order.
Description
Reorders a distance map by a new marker order.
Usage
dmap.check(distmap, newrank)
Arguments
distmap |
A symmetric matrix of pairwise inter-marker distances. |
newrank |
A vector of scalars giving the new rank of each marker, markers should appear in the same order as in the distmap. |
Details
The rows and columns in distmap are reordered such that if entry i in newrank
has value j then row j and column j in the new matrix are row i and column i
from distmap.
Value
Matrix of pairwise inter-marker distances.
Examples
s<-matrix(1:25,nrow=5)
s<-0.5*(s+t(s))
rank<-c(1,3,4,2,5)
dmap.check(s,rank)
[Package MDSMap version 1.1 Index]