# NOT RUN {
# generate data
X <- aux.gensamples(dname="crown")
## 1. use 10% of random points
output1 <- do.lmds(X,ndim=2,npoints=round(nrow(X)/10))
## 2. using MaxMin scheme
output2 <- do.lmds(X,ndim=2,npoints=round(nrow(X)/10),ltype="MaxMin")
## 3. original mds case
output3 <- do.mds(X,ndim=2)
## Visualization
par(mfrow=c(1,3))
plot(output1$Y[,1],output2$Y[,2],main="10% random points")
plot(output2$Y[,1],output2$Y[,2],main="10% MaxMin points")
plot(output3$Y[,1],output3$Y[,2],main="original MDS")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab