dmap.check | R Documentation |
Reorders a distance map by a new marker order.
dmap.check(distmap, newrank)
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. |
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.
Matrix of pairwise inter-marker distances.
s<-matrix(1:25,nrow=5)
s<-0.5*(s+t(s))
rank<-c(1,3,4,2,5)
dmap.check(s,rank)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.