# NOT RUN {
if(requireNamespace("pcaL1", quietly = TRUE)) {
dat <- loadDataSet("Iris")
## using the S4 Class
pca_l1 <- PCA_L1()
emb <- pca_l1@fun(dat, pca_l1@stdpars)
## using embed()
emb2 <- embed(dat, "PCA_L1")
plot(emb, type = "2vars")
plot(emb@inverse(emb@data), type = "3vars")
}
# }
Run the code above in your browser using DataLab