# NOT RUN {
## use iris data
data(iris)
X = as.matrix(iris[,1:4])
label = as.integer(iris$Species)
## 1. no preprocessing
output1 <- do.ree(X,ndim=2,maxiter=50)
## 2. use decorrelated data
output2 <- do.ree(X,ndim=2,preprocess="decorrelate",maxiter=50)
## Visualize three different projections
opar <- par(no.readonly=TRUE)
par(mfrow=c(1,2))
plot(output1$Y, col=label, main="centered")
plot(output2$Y, col=label, main="decorrelated")
par(opar)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab