Description Usage Arguments Details Value See Also Examples
Maps points from the final configuration of a 2-dimensional spherically constrained wMDS to an interval with a starting point at 0.
1 | map.to.interval(mdsobject, nloci)
|
mdsobject |
The output from |
nloci |
The number of markers in the configuration. |
Centres the configuration on zero and calculates the median distance of the points from the origin. Finds the largest gap in the spherical configuration and assigns the marker on the right hand side of it angle 0. Converts Cartesian coordinates to polar coordinates and projects points onto the arc centred on 0 with radius the median distance from the origin.
A list with the elements:
chromlength |
A named vector giving the position of each marker. |
order |
A named vector giving the rank order of the markers. |
locilength |
A named vector giving the position of each marker in order of increasing distance along the segment. |
maporder |
A named vector of the position in the input list of each marker in order of increasing distance along the segment. |
1 2 3 4 5 6 7 | # M and lod should be n x n symmetric matrices of the same dimensions where
# n is the number markers to be analysed
## Not run:
mds1<-smacofSphere(M,ndim=2,algorithm=dual,weightmat=lod,penalty=100)
pol<-map.to.interval (m1,n)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.