# NOT RUN {
## use iris dataset
data(iris)
set.seed(100)
subid = sample(1:150,50)
X = as.matrix(iris[subid,1:4])
lab = as.factor(iris[subid,5])
## 1. use logcosh function for transformation
output1 <- do.ica(X,ndim=2,type="logcosh")
## 2. use exponential function for transformation
output2 <- do.ica(X,ndim=2,type="exp")
## 3. use polynomial function for transformation
output3 <- do.ica(X,ndim=2,type="poly")
## Visualize three different projections
opar <- par(no.readonly=TRUE)
par(mfrow=c(1,3))
plot(output1$Y, col=lab, pch=19, main="ICA::logcosh")
plot(output2$Y, col=lab, pch=19, main="ICA::exp")
plot(output3$Y, col=lab, pch=19, main="ICA::poly")
par(opar)
# }
Run the code above in your browser using DataLab