Description Usage References Examples
Multidimensional Scaling on Hypersphere
1 |
torgerson_multidimensional_1952RiemSphere
1 2 3 4 5 6 7 8 9 10 11 | ## generate two-cluster data
mymu1 = c(0,0,0,1) # center of class 1
mymu2 = c(-1,0,0,0) # center of class 2
x1 = rvmf(50, mymu1, kappa=15)
x2 = rvmf(50, mymu2, kappa=15)
xx = rbind(x1,x2)
## compute 2d embedding and visualization
mds2d <- sp.mds(xx, ndim=2)
plot(mds2d$embed[,1], mds2d$embed[,2], pch=19)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.