# NOT RUN {
## generate 2 normal groups of data that are far away
X = rbind(matrix(rnorm(200),nrow=20), (matrix(rnorm(200),nrow=20)+10))
## connecting 10% and 25% of data for graph construction each.
output1 <- do.olpp(X,ndim=2,type=c("proportion",0.10))
output2 <- do.olpp(X,ndim=2,type=c("proportion",0.25))
## Visualize
# In theory, it should show two separated groups of data
par(mfrow=c(1,2))
plot(output1$Y[,1],output1$Y[,2],main="10% connected")
plot(output2$Y[,1],output2$Y[,2],main="25% connected")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab