Description Usage Arguments Details Value References See Also Examples
Converts the coordinates of points in the final configuration of a spherically constrained wMDS from Cartesian to polar coordinates.
1 | convert.polar(mdsobject, nloci)
|
mdsobject |
Output from |
nloci |
The number of markers in the configuration. |
Centres the circle on zero if necessary, finds a the most natural break in the points to start as 0, then calculates the angle of each point relative to this. The radius is the median distance of points from the centre.
theta |
A vector of angles one for each point. |
radius |
A scalar the radius of sphere. |
de Leeuw J, Mair P (2009) Multidimensional scaling using majorization: SMACOF in R. J Stat Softw 31:1-30 http://www.jstatsoft.org/v31/i03/
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<-convert.polar(mds1,n)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.