# NOT RUN {
dat <- loadDataSet("3D S Curve")
## Use the S4 Class directly:
mds <- MDS()
emb <- mds@fun(dat, mds@stdpars)
## use embed():
emb2 <- embed(dat, "MDS", d = function(x) exp(stats::dist(x)))
plot(emb, type = "2vars")
plot(emb2, type = "2vars")
# }
Run the code above in your browser using DataLab