# NOT RUN {
## load iris data
data(iris)
X = as.matrix(iris[,1:4])
label = as.factor(iris$Species)
## compare SLPE with SLPP
out1 <- do.slpp(X, label)
out2 <- do.slpe(X, label)
## visualize
opar <- par(no.readonly=TRUE)
par(mfrow=c(1,2))
plot(out1$Y, col=label, main="SLPP")
plot(out2$Y, col=label, main="SLPE")
par(opar)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab